You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "comphead (via GitHub)" <gi...@apache.org> on 2023/06/16 01:57:49 UTC

[GitHub] [arrow-datafusion] comphead opened a new issue, #6691: Simple window query fails

comphead opened a new issue, #6691:
URL: https://github.com/apache/arrow-datafusion/issues/6691

   ### 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 https://github.com/apache/arrow-datafusion/issues/6492


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [BUG] Simple window query fails [arrow-datafusion]

Posted by "Jefffrey (via GitHub)" <gi...@apache.org>.
Jefffrey commented on issue #6691:
URL: https://github.com/apache/arrow-datafusion/issues/6691#issuecomment-1780002954

   ```sql
   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.0
   ❯ select 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: https://github.com/apache/arrow-datafusion/pull/7928


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [BUG] Simple window query fails [arrow-datafusion]

Posted by "viirya (via GitHub)" <gi...@apache.org>.
viirya closed issue #6691: [BUG] Simple window query fails
URL: https://github.com/apache/arrow-datafusion/issues/6691


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org