xinlifoobar commented on issue #10521: URL: https://github.com/apache/datafusion/issues/10521#issuecomment-2115020694
I think from the `Vec<Expr>` could not mapping back to the only unique `Vec<Vec<Expr>>` and hence unparse the cube statement would be difficult. How about store another copy of origin Vec in the Cube and Rollup instance? i.e., ```rs pub enum GroupingSet { /// Rollup grouping sets Rollup(Vec<Expr>, Vec<Vec<Expr>>), /// Cube grouping sets Cube(Vec<Expr>, Vec<Vec<Expr>>), /// User-defined grouping sets GroupingSets(Vec<Vec<Expr>>), } ``` -- 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-unsubscr...@datafusion.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For additional commands, e-mail: github-h...@datafusion.apache.org