-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[pixels-core, pixels-presto] support 'is null' in query predicate. #103
Comments
If we use '=null' (although not meaningful) in query predicate, we encounter the following error: java.lang.NullPointerException: undefined
at io.pixelsdb.pixels.core.reader.PixelsRecordReaderImpl.prepareRead(PixelsRecordReaderImpl.java:254)
at io.pixelsdb.pixels.core.reader.PixelsRecordReaderImpl.prepareBatch(PixelsRecordReaderImpl.java:599)
at io.pixelsdb.pixels.presto.PixelsPageSource.getNextPage(PixelsPageSource.java:230)
at com.facebook.presto.operator.ScanFilterAndProjectOperator.processPageSource(ScanFilterAndProjectOperator.java:273)
at com.facebook.presto.operator.ScanFilterAndProjectOperator.getOutput(ScanFilterAndProjectOperator.java:234)
at com.facebook.presto.operator.Driver.processInternal(Driver.java:379)
at com.facebook.presto.operator.Driver.lambda$processFor$8(Driver.java:278)
at com.facebook.presto.operator.Driver.tryWithLock(Driver.java:659)
at com.facebook.presto.operator.Driver.processFor(Driver.java:272)
at com.facebook.presto.execution.SqlTaskExecution$DriverSplitRunner.processFor(SqlTaskExecution.java:975)
at com.facebook.presto.execution.executor.PrioritizedSplitRunner.process(PrioritizedSplitRunner.java:163)
at com.facebook.presto.execution.executor.LegacyPrioritizedSplitRunner.process(LegacyPrioritizedSplitRunner.java:23)
at com.facebook.presto.execution.executor.TaskExecutor$TaskRunner.run(TaskExecutor.java:492)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748) |
Anthoer related problem: |
We have this problem after fixing the first ('is null') problem. And we confirm that this is caused by the prepareBatch behavior and the Improper action taken by Presto. So we are going to partially resolve it in another issue. |
1. fix predicate processing in PixelsRecordReaderImpl and TupleDomainPixelsPredicate. 2. correctly support 'is null' and constant predicates. 3. for '=null', the query would still be endless, but this is not due to predicate processing.
Resolved in PR #104. |
Currently, using 'is null' in Presto may encounter the following error:
The text was updated successfully, but these errors were encountered: