Adding upstream version 17.2.0.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
0aa02fba5a
commit
fbce006e29
91 changed files with 42856 additions and 42624 deletions
|
@ -173,6 +173,8 @@ class Spark2(Hive):
|
|||
return pivot_column_names(aggregations, dialect="spark")
|
||||
|
||||
class Generator(Hive.Generator):
|
||||
QUERY_HINTS = True
|
||||
|
||||
TYPE_MAPPING = {
|
||||
**Hive.Generator.TYPE_MAPPING,
|
||||
exp.DataType.Type.TINYINT: "BYTE",
|
||||
|
@ -203,7 +205,6 @@ class Spark2(Hive):
|
|||
exp.DayOfYear: rename_func("DAYOFYEAR"),
|
||||
exp.FileFormatProperty: lambda self, e: f"USING {e.name.upper()}",
|
||||
exp.From: transforms.preprocess([_unalias_pivot]),
|
||||
exp.Hint: lambda self, e: f" /*+ {self.expressions(e).strip()} */",
|
||||
exp.LogicalAnd: rename_func("BOOL_AND"),
|
||||
exp.LogicalOr: rename_func("BOOL_OR"),
|
||||
exp.Map: _map_sql,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue