Skip to content
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

Infinite continuations: sum(*) returns alternating rows forever #3096

Open
ohadzeliger opened this issue Feb 4, 2025 · 0 comments
Open

Infinite continuations: sum(*) returns alternating rows forever #3096

ohadzeliger opened this issue Feb 4, 2025 · 0 comments

Comments

@ohadzeliger
Copy link
Contributor

Adding maxRows:1 to the yaml test keeps returning two rows forever (the result row and an empty row), the continuation is never atEnd().

Steps To Reproduce:

  1. For example, in the test aggregate-index-tests.yamsql, modify the test to be:
  2.    - query: select max(col2) from T1 use index (mv8);
    - maxRows: 1
    - explain: "ISCAN(MV8 <,>) | MAP (_ AS _0) | AGG (max_l(_._0.COL2) AS _0) | ON EMPTY NULL | MAP (_._0._0 AS _0)"
    - result: [{!l 13}]
    - result: [{!null _}]
    - result: [{!l 13}]
    - result: [{!null _}]
    - result: [{!l 13}]
    - result: [{!null _}]
    - result: [{!l 13}]
    - result: [{!null _}]
    
  3. And the test will always fail with “Query returned more results, but no more were expected after line …”

Note that this behaves differently when running in mixed mode, where the error is:

Caused by: com.google.common.base.VerifyException
at com.google.common.base.Verify.verify(Verify.java:102)
at com.apple.foundationdb.relational.recordlayer.query.QueryPlan$ContinuedPhysicalQueryPlan.validatePlanAgainstEnvironment(QueryPlan.java:520)
at com.apple.foundationdb.relational.recordlayer.query.QueryPlan$PhysicalQueryPlan.executePhysicalPlan(QueryPlan.java:361)
at com.apple.foundationdb.relational.recordlayer.query.QueryPlan$PhysicalQueryPlan.executeInternal(QueryPlan.java:252)
at com.apple.foundationdb.relational.recordlayer.query.QueryPlan$PhysicalQueryPlan.executeInternal(QueryPlan.java:112)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant