-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEAT]: Sql common table expressions (CTE's) #3137
Conversation
CodSpeed Performance ReportMerging #3137 will not alter performanceComparing Summary
|
let selection = match query.body.as_ref() { | ||
SetExpr::Select(selection) => selection, | ||
SetExpr::Query(_) => unsupported_sql_err!("Subqueries are not supported"), | ||
SetExpr::SetOperation { .. } => { | ||
unsupported_sql_err!("Set operations are not supported") | ||
} | ||
SetExpr::Values(..) => unsupported_sql_err!("VALUES are not supported"), | ||
SetExpr::Insert(..) => unsupported_sql_err!("INSERT is not supported"), | ||
SetExpr::Update(..) => unsupported_sql_err!("UPDATE is not supported"), | ||
SetExpr::Table(..) => unsupported_sql_err!("TABLE is not supported"), | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a small drive-by to provide better error messages here.
sqlparser::ast::TableFactor::TableFunction { .. } => { | ||
unsupported_sql_err!("Unsupported table factor: TableFunction") | ||
} | ||
sqlparser::ast::TableFactor::Function { .. } => { | ||
unsupported_sql_err!("Unsupported table factor: Function") | ||
} | ||
sqlparser::ast::TableFactor::UNNEST { .. } => { | ||
unsupported_sql_err!("Unsupported table factor: UNNEST") | ||
} | ||
sqlparser::ast::TableFactor::JsonTable { .. } => { | ||
unsupported_sql_err!("Unsupported table factor: JsonTable") | ||
} | ||
sqlparser::ast::TableFactor::NestedJoin { .. } => { | ||
unsupported_sql_err!("Unsupported table factor: NestedJoin") | ||
} | ||
sqlparser::ast::TableFactor::Pivot { .. } => { | ||
unsupported_sql_err!("Unsupported table factor: Pivot") | ||
} | ||
sqlparser::ast::TableFactor::Unpivot { .. } => { | ||
unsupported_sql_err!("Unsupported table factor: Unpivot") | ||
} | ||
sqlparser::ast::TableFactor::MatchRecognize { .. } => { | ||
unsupported_sql_err!("Unsupported table factor: MatchRecognize") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
another small driveby for better error messages
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🙌
No description provided.