mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
feat: use sqlglot to set limit (#33473)
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from superset.db_engine_specs.base import BaseEngineSpec, LimitMethod
|
||||
from superset.db_engine_specs.base import BaseEngineSpec
|
||||
|
||||
|
||||
class TeradataEngineSpec(BaseEngineSpec):
|
||||
@@ -23,11 +23,8 @@ class TeradataEngineSpec(BaseEngineSpec):
|
||||
|
||||
engine = "teradatasql"
|
||||
engine_name = "Teradata"
|
||||
limit_method = LimitMethod.WRAP_SQL
|
||||
max_column_name_length = 30 # since 14.10 this is 128
|
||||
allow_limit_clause = False
|
||||
select_keywords = {"SELECT", "SEL"}
|
||||
top_keywords = {"TOP", "SAMPLE"}
|
||||
|
||||
_time_grain_expressions = {
|
||||
None: "{col}",
|
||||
|
||||
Reference in New Issue
Block a user