question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Query error on `select $segmentName, * from table limit 1`

See original GitHub issue

While 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:closed
  • Created 2 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
suddendustcommented, Apr 15, 2022

This can be closed as it’s released in 0.10.0 @Jackie-Jiang

0reactions
Jackie-Jiangcommented, Jan 13, 2022

@suddendust Thanks for volunteering on this. I’ve assigned the issue to you

For the questions:

  1. I think the standard SQL behavior returns each column only once
  2. We should not return the virtual columns, unless it is explicitly queried, e.g. select $docId, * from ...
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found