Skip to content

Commit

Permalink
fix: iceberg target dir
Browse files Browse the repository at this point in the history
  • Loading branch information
JossWhittle committed Oct 27, 2023
1 parent b407e8a commit b464550
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dags/modules/databases/trino.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def create_schema(trino: sqlalchemy.engine.Engine, schema: str, location: str):
query = f"CREATE SCHEMA IF NOT EXISTS " \
f"{validate_identifier(schema)} " \
f"WITH (" \
f"location='s3a://{validate_s3_key(location)}'" \
f"location='s3a://{validate_s3_key(location)}/'" \
f")"
trino.execute(query)

Expand Down Expand Up @@ -157,7 +157,7 @@ def iceberg_create_table_from_hive(trino: sqlalchemy.engine.Engine, table: str,
query = f"CREATE TABLE " \
f"{validate_identifier(table)} " \
f"WITH (" \
f"location='s3a://{validate_s3_key(location)}', " \
f"location='s3a://{validate_s3_key(location)}/', " \
f"format='PARQUET'" \
f") " \
f"AS SELECT {schema} FROM {validate_identifier(hive_table)}"
Expand Down

0 comments on commit b464550

Please sign in to comment.