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)
- cannot import datafusion-37.1.0 in python 3.8 of windows 7 x64 HOT 2
- Release DataFusion `39.0.0` HOT 7
- `ScalarVariable` Expr --> String Support
- `IsNull` / `IsNotNull` Expr --> String Support HOT 2
- `TryCast` Expr --> String Support
- `GroupingSet` Expr --> String Support HOT 5
- `Placeholder` Expr --> String Support HOT 1
- `OuterColumnReference` Expr --> String Support HOT 1
- Add an example of how to use the SQL parser/unparser API HOT 2
- Support Substrait VirtualTables
- Discussion: make it easier for specify SQL --> function translation HOT 7
- Create a DataFusion blog HOT 3
- `analysis.rs` bounds check panic HOT 5
- AggregateUDF expression API design HOT 2
- Example for building an external index for parquet files HOT 6
- `array_slice` can't correctly handle NULL parameters or some edge cases
- Add an example of how to convert LogicalPlan to/from SQL Strings
- Cast from string to date with "/" HOT 2
- error: this arithmetic operation will overflow (on i386)
- REmove workaround for `COUNT(*)` in subquery decorrelation code
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.