Comments (5)
Commenting here for myself to continue looking further, but I suspect this is happening in exprlist_to_fields
in datafusion/expr/src/utils.rs
where we look towards the input fields of aggregates. Because this type of aggregate does not produce the same type as the input field is likely the culprit.
from arrow-datafusion.
Quickly took a look at another aggregate function that can return a different type. By calling count_distinct
instead of array_agg
and updating the input file to have strings instead of int64 values I verified it is also outputting the incorrect schema after doing the select operation.
from arrow-datafusion.
It should be caused by exprlist_to_fields_aggregate.
There are two columns named 'c', one from the aggregated input and the other from the output. exprlist_to_fields_aggregate
forcibly uses the column 'c' from the input, which is of type Int64
.
from arrow-datafusion.
exprlist_to_fields_aggregate was introduced by #2486, I doubt whether we still need it now because removing it won't break any tests.
from arrow-datafusion.
take
from arrow-datafusion.
Related Issues (20)
- Support substrait serialization for `ScalarValue::Utf8View` and `ScalarValue::BinaryView` HOT 3
- Add config flag to convert `Utf8View`/`BinaryView` --> `Utf8` / `Binary` at output HOT 4
- Add the possibility to work with plan clones directly in `inline_table_scan` HOT 3
- Parquet statistics missing when reading `Utf8` as `Utf8View`
- Panic in `substring()` scalar function (SQLancer) HOT 1
- Fuse operations in `equal_rows_arr` HOT 1
- External sorting not working for (maybe only for string columns??)
- Builder style API for creating `RuntimeEnv` HOT 3
- Unchecked overflow in integer number addition HOT 1
- List available functions (`SHOW FUNCTIONS`)
- Support `map_keys` function for Map type HOT 1
- Support `map_values` for MAP type HOT 1
- `octet_length()` function not working for StringView columns (SQLancer) HOT 1
- Internal error in `regexp_replace()` for some StringView input (SQLancer) HOT 3
- Unparse TableScan with pushdown projection HOT 1
- not support similar to expr run in physical expr? HOT 1
- Make `RuntimeEnvBuilder` rather than `RuntimeConfig` HOT 1
- Bug: SQLite unparser does not support date extraction functions
- Error aliasing on double unnest on List[Struct]
- Optimize set-associative nested function with Eq Kernel HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arrow-datafusion.