Add fn support_group_by_expr to Dialect trait (#896)

This commit is contained in:
Jeremy Dyer 2023-06-15 09:10:56 -04:00 committed by GitHub
parent 2b37e4ae6e
commit 2296de2bc4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 17 additions and 1 deletions

View file

@ -113,6 +113,10 @@ pub trait Dialect: Debug + Any {
fn supports_within_after_array_aggregation(&self) -> bool {
false
}
/// Returns true if the dialects supports `group sets, roll up, or cube` expressions.
fn supports_group_by_expr(&self) -> bool {
false
}
/// Dialect-specific prefix parser override
fn parse_prefix(&self, _parser: &mut Parser) -> Option<Result<Expr, ParserError>> {
// return None to fall back to the default behavior