summaryrefslogtreecommitdiffstats
path: root/sqlglot/expressions.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-10-10 08:53:14 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-10-10 08:53:14 +0000
commitcd37a3bcaced9283c20baa52837c96b524baec54 (patch)
tree101b1c1487aa832a982dd635cd3b00d4d2ea3ae9 /sqlglot/expressions.py
parentReleasing progress-linux version 18.11.2-1. (diff)
downloadsqlglot-cd37a3bcaced9283c20baa52837c96b524baec54.tar.xz
sqlglot-cd37a3bcaced9283c20baa52837c96b524baec54.zip
Merging upstream version 18.11.6.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'sqlglot/expressions.py')
-rw-r--r--sqlglot/expressions.py28
1 files changed, 25 insertions, 3 deletions
diff --git a/sqlglot/expressions.py b/sqlglot/expressions.py
index 1e4aad6..80f1c0f 100644
--- a/sqlglot/expressions.py
+++ b/sqlglot/expressions.py
@@ -2040,8 +2040,12 @@ class FreespaceProperty(Property):
arg_types = {"this": True, "percent": False}
-class InputOutputFormat(Expression):
- arg_types = {"input_format": False, "output_format": False}
+class InputModelProperty(Property):
+ arg_types = {"this": True}
+
+
+class OutputModelProperty(Property):
+ arg_types = {"this": True}
class IsolatedLoadingProperty(Property):
@@ -2137,6 +2141,10 @@ class PartitionedByProperty(Property):
arg_types = {"this": True}
+class RemoteWithConnectionModelProperty(Property):
+ arg_types = {"this": True}
+
+
class ReturnsProperty(Property):
arg_types = {"this": True, "is_table": False, "table": False}
@@ -2211,6 +2219,10 @@ class TemporaryProperty(Property):
arg_types = {}
+class TransformModelProperty(Property):
+ arg_types = {"expressions": True}
+
+
class TransientProperty(Property):
arg_types = {"this": False}
@@ -2293,6 +2305,10 @@ class Qualify(Expression):
pass
+class InputOutputFormat(Expression):
+ arg_types = {"input_format": False, "output_format": False}
+
+
# https://www.ibm.com/docs/en/ias?topic=procedures-return-statement-in-sql
class Return(Expression):
pass
@@ -2465,6 +2481,7 @@ class Table(Expression):
"version": False,
"format": False,
"pattern": False,
+ "index": False,
}
@property
@@ -3431,7 +3448,7 @@ class Pivot(Expression):
arg_types = {
"this": False,
"alias": False,
- "expressions": True,
+ "expressions": False,
"field": False,
"unpivot": False,
"using": False,
@@ -4777,6 +4794,11 @@ class Posexplode(Func):
pass
+# https://cloud.google.com/bigquery/docs/reference/standard-sql/bigqueryml-syntax-predict#mlpredict_function
+class Predict(Func):
+ arg_types = {"this": True, "expression": True, "params_struct": False}
+
+
class Pow(Binary, Func):
_sql_names = ["POWER", "POW"]