Query error on `select $segmentName, * from table limit 1`
See original GitHub issueWhile running some adhoc queries to debug some things, I found the following query would fail. It’s not a significant issue, because a query explicitly listing columns to select works fine.
select $segmentName, * from table limit 1
with the exception(s)
[
{
"errorCode": 200,
"message": "QueryExecutionError:\njava.lang.RuntimeException: Caught exception while running CombinePlanNode.\n\tat org.apache.pinot.core.plan.CombinePlanNode.run(CombinePlanNode.java:146)\n\tat org.apache.pinot.core.plan.InstanceResponsePlanNode.run(InstanceResponsePlanNode.java:41)\n\tat org.apache.pinot.core.plan.GlobalPlanImplV0.execute(GlobalPlanImplV0.java:45)\n\tat org.apache.pinot.core.query.executor.ServerQueryExecutorV1Impl.processQuery(ServerQueryExecutorV1Impl.java:302)\n...\nCaused by: java.util.concurrent.ExecutionException: java.lang.NullPointerException\n\tat java.base/java.util.concurrent.FutureTask.report(FutureTask.java:122)\n\tat java.base/java.util.concurrent.FutureTask.get(FutureTask.java:205)\n\tat org.apache.pinot.core.plan.CombinePlanNode.run(CombinePlanNode.java:135)\n\t... 15 more\n...\nCaused by: java.lang.NullPointerException"
}
]
Note, the commit this was on is roughly ce9fb572d157d82f8a014624152ddd53332372be, and I have not yet tried to reproduce this on the latest version.
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
SELECT LIMIT 1 query returns unexpected results when the ...
It is a bug in your code to do selects without specifying an ORDER BY and expect some particular order. Conceptually, database tables...
Read more >SQL error messages and exceptions - Oracle Help Center
The following tables list SQLStates for exceptions. ... 42Y29, The SELECT list of a non-grouped query contains at least one invalid expression.
Read more >SELECT query with LIMIT clause returns non-deterministic ...
This article explains why SELECT query with LIMIT clause returns non-deterministic result although ORDER BY exists in a different level like ...
Read more >List of Unica Campaign error codes
The following table lists the error messages that are generated by Unica Campaign. ... Internal Error: No Data Source selected for Raw SQL...
Read more >Restricting return values with the SKIP, LIMIT, and FIRST options
The LIMIT and FIRST options set the maximum number of return values. ... in the FROM clause has a column with that name,...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This can be closed as it’s released in 0.10.0 @Jackie-Jiang
@suddendust Thanks for volunteering on this. I’ve assigned the issue to you
For the questions:
select $docId, * from ...