Skip to content

Commit

Permalink
Fix Column handling in arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
tools4origins committed Sep 26, 2021
1 parent 78fc641 commit b44adf6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pysparkling/sql/expressions/arrays.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def args(self):
)

def data_type(self, schema):
if not self.keys:
if not isinstance(self.keys, Column) and not self.keys:
return MapType(keyType=NullType, valueType=NullType)
return MapType(
keyType=self.keys[0].data_type(schema),
Expand Down

0 comments on commit b44adf6

Please sign in to comment.