We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98e2f96 commit ab32be9Copy full SHA for ab32be9
terraform/account-wide-infrastructure/modules/glue/src/transformations.py
@@ -38,7 +38,8 @@ def flatten_df(df):
38
[
39
(field.name, field.dataType)
40
for field in df.schema.fields
41
- if type(field.dataType) == ArrayType or type(field.dataType) == StructType
+ if isinstance(field.dataType, ArrayType)
42
+ or isinstance(field.dataType, StructType)
43
]
44
)
45
while len(complex_fields) != 0:
0 commit comments