Skip to content

Commit

Permalink
Merge pull request #5 from kszucs/nullable
Browse files Browse the repository at this point in the history
noissue nullable columns handled at convert.py
  • Loading branch information
kszucs authored Sep 29, 2017
2 parents 71b5ad4 + 18c653f commit 9868a35
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pandahouse/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
'uint64': 'UInt64',
'uint32': 'UInt32',
'uint16': 'UInt16',
'uint8': 'UInt8',
'float64': 'Float64',
'float32': 'Float32',
'uint8': 'UInt8',
'int64': 'Int64',
'int32': 'Int32',
'int16': 'Int16',
Expand All @@ -26,7 +26,11 @@
CH2PD = itemmap(reversed, MAPPING)
CH2PD['Null'] = 'object'

NULLABLE_COLS = ['UInt64', 'UInt32', 'UInt16', 'UInt8', 'Float64', 'Float32',
'Int64', 'Int32', 'Int16', 'Int8']

for col in NULLABLE_COLS:
CH2PD['Nullable({})'.format(col)] = CH2PD[col]
PY3 = sys.version_info[0] == 3


Expand Down

0 comments on commit 9868a35

Please sign in to comment.