BenSatori opened a new pull request, #2438: URL: https://github.com/apache/datafusion-sqlparser-rs/pull/2438
The ->> (flow/pipe) operator chains multiple SQL statements in Snowflake. **Before:** Parser rejected pipe chains like `SELECT * FROM t1 ->> SELECT * FROM $1` **After:** Parser correctly handles: - Chained statements with ->> operator - Pipe result references ($1, $2, $3, etc.) - Round-trip SQL serialization **Example:** ```sql SELECT * FROM users WHERE active = true ->> SELECT COUNT(*) FROM $1 ``` Changes: - Added Statement::Pipe AST variant for chained statements - Added TableFactor::PipeResultScan for $n result references - Extended Snowflake dialect with pipe operator support - Comprehensive test coverage (2 test functions, multiple edge cases) Snowflake docs: https://docs.snowflake.com/en/sql-reference/operators-flow#pipe -- 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]
