Comments (2)
@l1t1 I think it is expected result like Duckdb does.
D select sum(unnest([1,2,3]));
Error: Binder Error: UNNEST not supported here
LINE 1: select sum(unnest([1,2,3]));
^
D select unnest([1,2,3]);
┌──────────────────────────────────┐
│ unnest(main.list_value(1, 2, 3)) │
│ int32 │
├──────────────────────────────────┤
│ 1 │
│ 2 │
│ 3 │
└──────────────────────────────────┘
D select sum(a) from (select unnest([1,2,3]) as a);
┌────────┐
│ sum(a) │
│ int128 │
├────────┤
│ 6 │
└────────┘
unless there is other well-known db that support the first case, I think we can keep it as is now.
from arrow-datafusion.
Another viable replacement query is
DataFusion CLI v37.0.0
❯ select sum(a) from unnest(generate_series(1,10)) as t(a);
+----------+
| SUM(t.a) |
+----------+
| 55 |
+----------+
from arrow-datafusion.
Related Issues (20)
- Move coalesce to datafusion-functions and remove BuiltInScalarFunction HOT 1
- Got arrow error when sorting on empty batch
- Make `Sum` an UDAF
- Deprecate TreeNode `transform_xx_mut` methods HOT 2
- fix Sort Merge Join to pass TPCH tests HOT 3
- Make it possible to disable compression algorithm feature flags inside the parquet dependency without disabling parquet.
- select multiple columns in a single `Expr` HOT 22
- Configure dependabot to auto upgrade dependencies for datafusion-cli
- Trigger the Sort Merge Join benchmark using the GitHub action
- [minor] make parquet prune tests more readable
- Average groups accumulator doesn't coerce to return type in presence of null values
- Intermittent CI failure on `at test_files/joins.slt:3676`
- [Epic] Improved TreeNode APIs HOT 2
- Old URL for CLI docs page is showing 404 HOT 6
- Replace NOTICES.txt with version that is relevant to DataFusion
- ScalarValue::iter_to_array doesn't support Duration and Union types HOT 1
- Create a DOAP (description of a project file) HOT 4
- Updates to the release scripts and associated documentation to be datafusion rather than arrow-datafusion HOT 2
- Blog Post about graduating to a new top level project
- [Display] show preserve_partitioning in sortExec 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.