Skip to content

Commit ab32be9

Browse files
committed
NRL-1320 sonar changes
1 parent 98e2f96 commit ab32be9

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
@@ -38,7 +38,8 @@ def flatten_df(df):
3838
[
3939
(field.name, field.dataType)
4040
for field in df.schema.fields
41-
if type(field.dataType) == ArrayType or type(field.dataType) == StructType
41+
if isinstance(field.dataType, ArrayType)
42+
or isinstance(field.dataType, StructType)
4243
]
4344
)
4445
while len(complex_fields) != 0:

0 commit comments

Comments
 (0)