Skip to content

Commit 0266f6e

Browse files
committed
NRL-1268 update naimg convention of cols
1 parent 509fa62 commit 0266f6e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

terraform/account-wide-infrastructure/modules/glue/src/transformations.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ def flatten(schema, prefix=""):
7070
if isinstance(field.dataType, StructType):
7171
fields += flatten(field.dataType, name)
7272
else:
73-
fields.append((name, field.name))
73+
alias_name = name.replace(".", "_")
74+
fields.append((name, alias_name))
7475
return fields
7576

7677
flat_columns = flatten(df.schema)

0 commit comments

Comments
 (0)