NoahKusaba opened a new issue, #2968: URL: https://github.com/apache/datafusion-ballista/issues/2968
**Describe the bug** Some plans that DataFusion runs fail on Ballista because the logical or physical plan can't be serialized for the scheduler or the executors. This happens with both planners. **To Reproduce** Standalone Ballista on `main` (446fa54c9), default settings: ```sql WITH RECURSIVE nums(n) AS (SELECT 1 UNION ALL SELECT n + 1 FROM nums WHERE n < 5) SELECT sum(n) FROM nums; -- Unsupported plan and extension codec failed with [Internal error: Unsupported plan node, name: [RecursiveQueryExec]] SET datafusion.sql_parser.dialect = 'PostgreSQL'; WITH m AS MATERIALIZED (SELECT 1 AS x) SELECT * FROM m UNION ALL SELECT * FROM m; -- failed to serialize logical plan: LogicalPlan serde is not yet implemented for MATERIALIZED CTEs SELECT * FROM generate_series(1, 3); SELECT * FROM range(3); -- failed to serialize logical plan: Error serializing custom table: LogicalExtensionCodec is not provided ``` **Expected behavior** These run as they do in DataFusion. The fixes may belong in `datafusion-proto` (recursive and materialized CTEs) or in Ballista's codecs (the built-in table functions). This issue is to track them. **Additional context** Found by running DataFusion's sqllogictest files on Ballista (#2945): about 100 records with recursive or materialized CTEs in `cte.slt` and `cte_materialized.slt`. `generate_series` and `range` appear throughout the suite. The harness there avoids those failures with an in-process codec, so their count isn't measured. Related upstream issues: - apache/datafusion#4337: serializing `IN` / `EXISTS` / scalar subquery expressions - apache/datafusion#27206: window `FILTER` and `IGNORE NULLS` lost in physical plan serialization. On Ballista, `LEAD`/`LAG`/`LAST_VALUE … IGNORE NULLS` and window aggregates with `FILTER (WHERE …)` return wrong results (`window_limits.slt`, `window_ignore_nulls_matrix.slt`, `aggregate.slt` 7300 and 7306). -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
