Skip to content

Commit

Permalink
fixed p_column error
Browse files Browse the repository at this point in the history
  • Loading branch information
Arno Roos authored and Arno Roos committed Feb 11, 2024
1 parent 0902ff9 commit ea364f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dbt/adapters/duckdb/plugins/glue.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,11 +213,11 @@ def _add_partition_columns(
partition_keys.append(partition_column)
table_def["PartitionKeys"] = partition_keys
# Remove columns from StorageDescriptor if they match with partition columns to avoid duplicate columns
for column in partition_columns:
for p_column in partition_columns:
table_def["StorageDescriptor"]["Columns"] = [
column
for column in table_def["StorageDescriptor"]["Columns"]
if not (column["Name"] == column["Name"] and column["Type"] == column["Type"])
if not (column["Name"] == p_column["Name"] and column["Type"] == p_column["Type"])
]
return table_def

Expand Down

0 comments on commit ea364f2

Please sign in to comment.