Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/beeswax/src/beeswax/server/hive_server2_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -1427,7 +1427,7 @@ def __repr__(self):
def _get_partition_spec(self, name, value):
partition_spec = "`%s`='%s'" % (name, value)
partition_key = next((key for key in self.partition_keys if key.name == name), None)
if partition_key and partition_key.type.upper() not in ('STRING', 'CHAR', 'VARCHAR', 'TIMESTAMP', 'DATE'):
if partition_key and partition_key.type.split('(')[0].upper() not in ('STRING', 'CHAR', 'VARCHAR', 'TIMESTAMP', 'DATE'):
partition_spec = "`%s`=%s" % (name, value)
return partition_spec

Expand Down
Loading