When i run a query with filter on 1 field it runs
select * from tablename where from_dt < ‘2020-04-01’ limit 1000 it works fine
but when i add another field to the filter it starts giving me this error.
select * from tablename where from_dt < ‘2020-04-01’ and to_dt > ‘2020-04-01’ limit 1000
It does not work at all. and it gives below error
Strangely, from_dt field already reduced the data search and so to_dt>‘2020-04-01’ should actually woudl have run fatser.
Instead it gave Memoy leak exception.
I checked there was no OutofMemoery Exception. Few lines from statcktrace aer below
:"SYSTEM ERROR: IllegalStateException: Memory was leaked by query. Memory leaked: (2097152)\nAllocator(row-group-reader) 0/2097152/12582912/9223372036854775807 (res/actual/peak/limit)\n\n\nFragment 1:0\n\n[Error Id: 14d0d9b9-acfb-4789-b00d-9c6611d3366b on gueulpadmf001.devfg.rbc.com:-1]\n\n (com.dremio.common.exceptions.ExecutionSetupException) Failed to create scan operator.\n com.dremio.exec.store.parquet.ParquetOperatorCreator.create():82\n com.dremio.exec.store.parquet.ParquetOperatorCreator.create():66\n com.dremio.sabot.driver.OperatorCreatorRegistry.getProducerOperator():94\n com.dremio.sabot.driver.PipelineCreator$CreatorVisitor.visitSubScan():210\n com.dremio.sabot.driver.PipelineCreator$CreatorVisitor.visitSubScan():115\n com.dremio.exec.physical.base.AbstractSubScan.accept():85\n com.dremio.sabot.driver.PipelineCreator$CreatorVisitor.visitOp():247\n
I also saw there was a field with titled bacthSchema which has strange characters
“batchSchema”:"EAAAAAAACgAMAAAACAAEAAoAAAAIAAAACAAAAAAAAAC7AQAAVG4AABBuAADUbQAAoG0AAGhtAAA0bQAA/GwAAMRsAACMbAAAVGwAABxsAADgawAAoGsAAGRrAAAsawAA6GoAAKhqAAB0agAAOGoAAABqAADIaQAAjGkAAERpAAAAaQAAsGgAAHRoAAAoaAAA8GcAALRnAAB0ZwAAOGcAAPhmAAC0ZgAAbGYAADBmAADsZQAAtGUAAHRlAAAsZQAA8GQAALBkAAB0ZAAAPGQAAABkAAC8YwAAgGMAAERjAAAMYwAA0GIAAJBiAABQYgAAEGIAANBhAACQYQA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