PyHive doesn't support druid __time column
- Dominant language
- Python
- Stars
- 1.7k
- Forks
- 545
- PR merge metrics
- No merged PRs in 30d
Description
So if you want to query __time column in druid datasource - you will see KeyError
```
File "/usr/lib/python3.7/site-packages/pyhive/hive.py", line 321, in description
type_code = ttypes.TTypeId._VALUES_TO_NAMES[type_id]
KeyError: 22
```
Supported types are:
```
{0: 'BOOLEAN_TYPE', 1: 'TINYINT_TYPE', 2: 'SMALLINT_TYPE', 3: 'INT_TYPE', 4: 'BIGINT_TYPE', 5: 'FLOAT_TYPE', 6: 'DOUBLE_TYPE', 7: 'STRING_TYPE', 8: 'TIMESTAMP_TYPE', 9: 'BINARY_TYPE', 10: 'ARRAY_TYPE', 11: 'MAP_TYPE', 12: 'STRUCT_TYPE', 13: 'UNION_TYPE', 14: 'USER_DEFINED_TYPE', 15: 'DECIMAL_TYPE', 16: 'NULL_TYPE', 17: 'DATE_TYPE', 18: 'VARCHAR_TYPE', 19: 'CHAR_TYPE', 20: 'INTERVAL_YEAR_MONTH_TYPE', 21: 'INTERVAL_DAY_TIME_TYPE'}
```
Could somebody help me with fixing non existing type for time column?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.