alrevuelta commented on code in PR #2333:
URL:
https://github.com/apache/datafusion-sqlparser-rs/pull/2333#discussion_r3218404991
##########
src/ast/query.rs:
##########
@@ -764,11 +765,41 @@ impl fmt::Display for With {
if self.recursive {
f.write_str("RECURSIVE ")?;
}
- display_comma_separated(&self.cte_tables).fmt(f)?;
+ display_comma_separated(&self.items).fmt(f)?;
Ok(())
}
}
+/// A single item in a `WITH` clause.
+#[derive(Debug, Clone, PartialEq, PartialOrd, Eq, Ord, Hash)]
+#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
+#[cfg_attr(feature = "visitor", derive(Visit, VisitMut))]
+pub enum WithItem {
Review Comment:
fixed
https://github.com/apache/datafusion-sqlparser-rs/pull/2333/changes/3b868426bd4f1cc15017efbc3648f1b7cfab4a2a#diff-ff51937f34d0076928ac31baffb41b26e4cbc0ec6dd8496105a7f61188f92ed1R776-R782
##########
src/ast/query.rs:
##########
@@ -764,11 +765,41 @@ impl fmt::Display for With {
if self.recursive {
f.write_str("RECURSIVE ")?;
}
- display_comma_separated(&self.cte_tables).fmt(f)?;
+ display_comma_separated(&self.items).fmt(f)?;
Ok(())
}
}
+/// A single item in a `WITH` clause.
+#[derive(Debug, Clone, PartialEq, PartialOrd, Eq, Ord, Hash)]
+#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
+#[cfg_attr(feature = "visitor", derive(Visit, VisitMut))]
+pub enum WithItem {
+ /// A traditional common table expression: `name [(cols)] AS
[MATERIALIZED] (query)`.
Review Comment:
fixed
https://github.com/apache/datafusion-sqlparser-rs/pull/2333/changes/3b868426bd4f1cc15017efbc3648f1b7cfab4a2a#diff-ff51937f34d0076928ac31baffb41b26e4cbc0ec6dd8496105a7f61188f92ed1R776-R782
--
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]