diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-18 05:35:55 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-18 05:35:55 +0000 |
commit | fe979e8421c04c038353a0a2d07d81779516186a (patch) | |
tree | efb70a52261e5cf4862a7eb69e1d7cd16356fcba /sqlglot/dialects/athena.py | |
parent | Releasing debian version 23.13.7-1. (diff) | |
download | sqlglot-fe979e8421c04c038353a0a2d07d81779516186a.tar.xz sqlglot-fe979e8421c04c038353a0a2d07d81779516186a.zip |
Merging upstream version 23.16.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'sqlglot/dialects/athena.py')
-rw-r--r-- | sqlglot/dialects/athena.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sqlglot/dialects/athena.py b/sqlglot/dialects/athena.py index f2deec8..5fc7e52 100644 --- a/sqlglot/dialects/athena.py +++ b/sqlglot/dialects/athena.py @@ -13,6 +13,8 @@ class Athena(Trino): } class Generator(Trino.Generator): + WITH_PROPERTIES_PREFIX = "TBLPROPERTIES" + PROPERTIES_LOCATION = { **Trino.Generator.PROPERTIES_LOCATION, exp.LocationProperty: exp.Properties.Location.POST_SCHEMA, @@ -32,6 +34,3 @@ class Athena(Trino): return ( f"{self.property_name(expression, string_key=True)}={self.sql(expression, 'value')}" ) - - def with_properties(self, properties: exp.Properties) -> str: - return self.properties(properties, prefix=self.seg("TBLPROPERTIES")) |