mirror of
https://github.com/apache/superset.git
synced 2026-04-20 00:24:38 +00:00
fix(pinot): SUBSTR function (#35427)
This commit is contained in:
@@ -108,6 +108,12 @@ class Pinot(MySQL):
|
||||
e.args.get("expression"),
|
||||
e.this,
|
||||
),
|
||||
exp.Substring: lambda self, e: self.func(
|
||||
"SUBSTR",
|
||||
e.this,
|
||||
e.args.get("start"),
|
||||
e.args.get("length"),
|
||||
),
|
||||
}
|
||||
# Remove DATE_TRUNC transformation - Pinot supports standard SQL DATE_TRUNC
|
||||
TRANSFORMS.pop(exp.DateTrunc, None)
|
||||
|
||||
Reference in New Issue
Block a user