1
0
Fork 0

Merging upstream version 18.3.0.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-02-13 20:59:47 +01:00
parent 668bf19880
commit 74296cdad7
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
56 changed files with 29963 additions and 29170 deletions

View file

@ -3350,6 +3350,7 @@ class Subquery(DerivedTable, Unionable):
class TableSample(Expression):
arg_types = {
"this": False,
"expressions": False,
"method": False,
"bucket_numerator": False,
"bucket_denominator": False,
@ -3542,6 +3543,7 @@ class DataType(Expression):
UINT = auto()
UINT128 = auto()
UINT256 = auto()
UMEDIUMINT = auto()
UNIQUEIDENTIFIER = auto()
UNKNOWN = auto() # Sentinel value, useful for type annotation
USERDEFINED = "USER-DEFINED"
@ -3708,7 +3710,7 @@ class Rollback(Expression):
class AlterTable(Expression):
arg_types = {"this": True, "actions": True, "exists": False}
arg_types = {"this": True, "actions": True, "exists": False, "only": False}
class AddConstraint(Expression):
@ -3992,16 +3994,11 @@ class TimeUnit(Expression):
super().__init__(**args)
# https://www.oracletutorial.com/oracle-basics/oracle-interval/
# https://trino.io/docs/current/language/types.html#interval-year-to-month
class IntervalYearToMonthSpan(Expression):
arg_types = {}
# https://www.oracletutorial.com/oracle-basics/oracle-interval/
# https://trino.io/docs/current/language/types.html#interval-day-to-second
class IntervalDayToSecondSpan(Expression):
arg_types = {}
# https://docs.databricks.com/en/sql/language-manual/data-types/interval-type.html
class IntervalSpan(Expression):
arg_types = {"this": True, "expression": True}
class Interval(TimeUnit):