mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +00:00
feat: Add "is_select_query" method to base engine spec to make it possible to override it (#15013)
This commit is contained in:
@@ -1254,6 +1254,14 @@ class BaseEngineSpec: # pylint: disable=too-many-public-methods
|
||||
or parsed_query.is_show()
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def is_select_query(cls, parsed_query: ParsedQuery) -> bool:
|
||||
"""
|
||||
Determine if the statement should be considered as SELECT statement.
|
||||
Some query dialects do not contain "SELECT" word in queries (eg. Kusto)
|
||||
"""
|
||||
return parsed_query.is_select()
|
||||
|
||||
@classmethod
|
||||
@utils.memoized
|
||||
def get_column_spec(
|
||||
|
||||
Reference in New Issue
Block a user