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

[BUG] Simple window query fails #6691

Closed
comphead opened this issue Jun 16, 2023 · 1 comment · Fixed by #7928
Closed

[BUG] Simple window query fails #6691

comphead opened this issue Jun 16, 2023 · 1 comment · Fixed by #7928
Labels
bug Something isn't working

Comments

@comphead
Copy link
Contributor

Describe the bug

Not sure if its a regression but simple window query fails.

To Reproduce

DataFusion CLI v26.0.0
❯ select sum(1) over() x, sum(1) over () y;
Arrow error: Invalid argument error: batches[0] schema is different with argument schema.
            batches[0] schema: Schema { fields: [Field { name: "placeholder_0", data_type: Null, nullable: true, dict_id: 0, dict_is_ordered: false, metadata: {} }], metadata: {} },
            argument schema: Schema { fields: [], metadata: {} }

Expected behavior

Should work.

Additional context

Found when working on #6492

@comphead comphead added the bug Something isn't working label Jun 16, 2023
@comphead comphead changed the title Simple window query fails [BUG] Simple window query fails Jun 16, 2023
@Jefffrey
Copy link
Contributor

Jefffrey commented Oct 25, 2023

datafusion-cli$ cargo run
    Finished dev [unoptimized + debuginfo] target(s) in 0.20s
     Running `/media/jeffrey/1tb_860evo_ssd/.cargo_target_cache/debug/datafusion-cli`
DataFusion CLI v32.0.0select sum(1) over() x, sum(1) over () y;
+---+---+
| x | y |
+---+---+
| 1 | 1 |
+---+---+
1 row in set. Query took 0.004 seconds.

❯

Issue looks resolved as of latest main.

I've also created PR in case want this test case added to prevent future regression: #7928

(Assuming that is the expected result)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants