Comments (5)
I was playing around with this issue and found a more minimal example:
WITH A AS (
SELECT
1 AS id, 1 AS foo
UNION ALL
SELECT
1, 5
)
SELECT
ARRAY_AGG(DISTINCT a.foo),
SUM(DISTINCT 1)
FROM
A a
GROUP BY
a.id;
It is interesting though, using SUM(1) instead of SUM(DISTINCT 1) did not panic
from arrow-datafusion.
@jayzhan211 I appreciate your concern regarding the complex example case; I attempted to create a simpler contrived example, but was unable to trigger the panic doing so. I don't currently know the exact conditions that are triggering the problem.
from arrow-datafusion.
I added the assertion because I don't know if there is any case that has len > 1.
It would be nice if you had a simpler example to add to the test!
from arrow-datafusion.
@jayzhan211 I appreciate your concern regarding the complex example case; I attempted to create a simpler contrived example, but was unable to trigger the panic doing so. I don't currently know the exact conditions that are triggering the problem.
That's fine. I think that is the reason why I can't easily find the test case that trigger this panic, probably only the complex aggregate query that has multiple states meet the requirement.
I think we can add your example as a test case. And, find out whether we should fix the multi states issue in merge_batch
or elsewhere before entering merge_batch
.
from arrow-datafusion.
Added to #10517
from arrow-datafusion.
Related Issues (20)
- Aggregate with `FILTER` clause and alias errors HOT 1
- Incorrect LEFT JOIN evaluation result on OR conditions HOT 6
- SMJ: incorrect result for filtered right outer join HOT 1
- Convert `Regr` to UDAF HOT 1
- Convert `Correlation` to UDAF HOT 1
- SMJ producing different results than HashJoin when doing a semi join HOT 7
- Construction of user-defined table functions (UDTFs) should be async to allow for async schemas HOT 1
- Real-time streaming support HOT 1
- Data set which is much bigger than RAM HOT 1
- ci: clippy failed on main
- Convert `Grouping` to UDAF HOT 2
- Convert `BitAnd`, `BitOr`, `BitXor` to UDAF
- CTE in a UNION query can escape its scope HOT 1
- Unclear error message when calling a function with no parameters.
- [Epic] Implement support for `StringView` in DataFusion HOT 1
- Implement equality `=` and inequality `<>` support for `StringView` HOT 1
- Implement `arrow_cast` support for `StringView` and `BinaryView` HOT 1
- use StringViewArray when reading String columns from Parquet
- [EPIC] Continued correct and improved extracting Parquet statistics into ArrayRefs
- Update ListingTable to use `StatisticsConverter`
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.