Skip to content

Commit

Permalink
Update HeavyDB connector with most recent thrift changes (#7321)
Browse files Browse the repository at this point in the history
* Update HeavyDB connector with most recent thrift changes

* Add MULTIPOINT and MULTILINESTRING

Signed-off-by: Misiu Godfrey <misiu.godfrey@kraken.mapd.com>
  • Loading branch information
guilhermeleobas authored and misiugodfrey committed Aug 28, 2023
1 parent 88af5a5 commit 5f7c30f
Show file tree
Hide file tree
Showing 16 changed files with 351 additions and 54 deletions.
4 changes: 4 additions & 0 deletions python/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ thrift:
thrift -r -gen py ../heavy.thrift
rm -rf heavydb/thrift/*
cp -r gen-py/heavydb/thrift/* heavydb/thrift/
cp -r gen-py/heavydb/common/* heavydb/common/
cp -r gen-py/heavydb/completion_hints/* heavydb/completion_hints/
cp -r gen-py/heavydb/extension_functions/* heavydb/extension_functions/
cp -r gen-py/heavydb/serialized_result_set/* heavydb/serialized_result_set/

.PHONY: build
build: thrift
Expand Down
2 changes: 2 additions & 0 deletions python/heavydb/_parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@
'DOUBLE': 'real',
'STR': 'str',
'POINT': 'str',
'MULTIPOINT': 'str',
'LINESTRING': 'str',
'MULTILINESTRING': 'str',
'POLYGON': 'str',
'MULTIPOLYGON': 'str',
'TINYINT': 'int',
Expand Down
4 changes: 4 additions & 0 deletions python/heavydb/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ def date_to_seconds(arr):
'TIME': 'int_col',
'STR': 'str_col',
'POINT': 'str_col',
'MULTIPOINT': 'str_col',
'LINESTRING': 'str_col',
'MULTILINESTRING': 'str_col',
'POLYGON': 'str_col',
'MULTIPOLYGON': 'str_col',
'TINYINT': 'int_col',
Expand All @@ -78,7 +80,9 @@ def date_to_seconds(arr):
'TIME': -9223372036854775808,
'STR': '',
'POINT': '',
'MULTIPOINT': '',
'LINESTRING': '',
'MULTILINESTRING': '',
'POLYGON': '',
'MULTIPOLYGON': '',
'TINYINT': -128,
Expand Down
2 changes: 1 addition & 1 deletion python/heavydb/common/constants.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

103 changes: 101 additions & 2 deletions python/heavydb/common/ttypes.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion python/heavydb/completion_hints/constants.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion python/heavydb/completion_hints/ttypes.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions python/heavydb/dtypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ def __hash__(self):
[
T.STR,
T.POINT,
T.MULTIPOINT,
T.LINESTRING,
T.MULTILINESTRING,
T.POLYGON,
T.MULTIPOLYGON,
T.GEOMETRY,
Expand Down
2 changes: 1 addition & 1 deletion python/heavydb/extension_functions/constants.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 5f7c30f

Please sign in to comment.