fix(bigquery): calculated column cannot orderby in BigQuery (#17196)

* fix(bigquery): calculated column cannot orderby in BigQuery

* typo

* add ut

* fix lint
This commit is contained in:
Yongjie Zhao
2021-10-22 15:42:58 +01:00
committed by GitHub
parent 2ba046f228
commit bedb8f4dff
5 changed files with 81 additions and 0 deletions

View File

@@ -289,6 +289,12 @@ class BaseEngineSpec: # pylint: disable=too-many-public-methods
# if TRUE, then it doesn't have to.
allows_hidden_ordeby_agg = True
# Whether ORDER BY clause can use sql caculated expression
# if True, use alias of select column for `order by`
# the True is safely for most database
# But for backward compatibility, False by default
allows_hidden_cc_in_orderby = False
force_column_alias_quotes = False
arraysize = 0
max_column_name_length = 0