Skip to content

Commit

Permalink
Update thrift files and bump server version to 6.4 (#519)
Browse files Browse the repository at this point in the history
  • Loading branch information
guilhermeleobas authored Nov 17, 2022
1 parent c576db2 commit ba48cb3
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 5 deletions.
3 changes: 2 additions & 1 deletion rbc/common.thrift
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ enum TDatumType {
TINYINT,
GEOMETRY,
GEOGRAPHY,
MULTILINESTRING
MULTILINESTRING,
MULTIPOINT
}

enum TEncodingType {
Expand Down
19 changes: 16 additions & 3 deletions rbc/heavydb/remoteheavydb.py
Original file line number Diff line number Diff line change
Expand Up @@ -899,6 +899,7 @@ def _get_ext_arguments_map(self):
'GeoMultiPolygon': typemap['TExtArgumentType'].get(
'GeoMultiPolygon'),
'GeoMultiLineString': typemap['TExtArgumentType'].get('GeoMultiLineString'),
'GeoMultiPoint': typemap['TExtArgumentType'].get('GeoMultiPoint'),
'TextEncodingNone': typemap['TExtArgumentType'].get('TextEncodingNone'),
'TextEncodingDict': typemap['TExtArgumentType'].get('TextEncodingDict'),
'Timestamp': typemap['TExtArgumentType'].get('Timestamp'),
Expand All @@ -922,8 +923,17 @@ def _get_ext_arguments_map(self):
('double', 'Double'),
('TextEncodingDict', 'TextEncodingDict'),
('TextEncodingNone', 'TextEncodingNone'),
('Timestamp', 'Timestamp')]:
('Timestamp', 'Timestamp'),
('GeoLineString', 'GeoLineString'),
('GeoPolygon', 'GeoPolygon'),
('GeoMultiPoint', 'GeoMultiPoint'),
('GeoMultiLineString', 'GeoMultiLineString'),
('GeoPoint', 'GeoPoint'),
('GeoMultiPolygon', 'GeoMultiPolygon'),
]:
ext_arguments_map[f'Column<{T}>'] = typemap['TExtArgumentType'].get(f'Column{Tname}')
if T == 'Timestamp':
continue
ext_arguments_map[f'ColumnList<{T}>'] = typemap['TExtArgumentType'].get(
f'ColumnList{Tname}')
ext_arguments_map[f'ColumnArray<{T}>'] = typemap['TExtArgumentType'].get(
Expand All @@ -944,12 +954,15 @@ def _get_ext_arguments_map(self):
('TextEncodingDict', 'TextEncodingDict'),
('Timestamp', 'Timestamp'),
]:
ext_arguments_map['HeavyDBArrayType<%s>' % ptr_type] \
= ext_arguments_map.get('Array<%s>' % T)
ext_arguments_map['HeavyDBColumnType<%s>' % ptr_type] \
= ext_arguments_map.get('Column<%s>' % T)
ext_arguments_map['HeavyDBOutputColumnType<%s>' % ptr_type] \
= ext_arguments_map.get('Column<%s>' % T)
if T == 'Timestamp':
# timestamp is only defined for Columns
continue
ext_arguments_map['HeavyDBArrayType<%s>' % ptr_type] \
= ext_arguments_map.get('Array<%s>' % T)
ext_arguments_map['HeavyDBColumnListType<%s>' % ptr_type] \
= ext_arguments_map.get('ColumnList<%s>' % T)
ext_arguments_map['HeavyDBOutputColumnListType<%s>' % ptr_type] \
Expand Down
2 changes: 1 addition & 1 deletion rbc/tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ def require_version(version, message=None, label=None):
if not available_version:
pytest.skip(reason)
# Requires update when heavydb-internal bumps up version number:
current_development_version = Version("6.3.0")
current_development_version = Version("6.4.0")

curr_version = Version('.'.join(map(str, available_version[:2])))

Expand Down

0 comments on commit ba48cb3

Please sign in to comment.