jackwener commented on code in PR #4520:
URL: https://github.com/apache/arrow-datafusion/pull/4520#discussion_r1040839567
##########
datafusion/sql/src/planner.rs:
##########
@@ -103,6 +103,31 @@ pub struct ParserOptions {
parse_float_as_decimal: bool,
}
+#[derive(Debug, Clone)]
+/// Struct to store Common Table Expression provided with WITH clause and
Parameter Data Types provided with PREPARE statement
+pub struct Ctes {
+ /// Data type provided with prepare statement
+ pub prepare_param_data_types: Vec<DataType>,
+ /// Map of CTE name to logical plan of the WITH clause
+ pub ctes: HashMap<String, LogicalPlan>,
+}
Review Comment:
I think use a struct to store CTE info is a good idea👍
--
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]