heavyai / rbc

Remote Backend Compiler
https://rbc.readthedocs.io
BSD 3-Clause "New" or "Revised" License
30 stars 10 forks source link

Implement Geo types #537

Closed guilhermeleobas closed 1 year ago

guilhermeleobas commented 1 year ago

This is a follow-up PR of #523 which adds support for all the geo types implemented in HeavyDB. To execute, it requires PR https://github.com/heavyai/heavydb-internal/pull/7126.

Rendered docs gives the list of implemented methods and attributes.

pearu commented 1 year ago

When running rbc tests agains cuda-enabled heavydb server (master), the following tests fail:

``` FAILED rbc/tests/heavydb/test_geolinestring.py::test_ct_pointn[multipoint-mp2-1] - AssertionError: FAILED rbc/tests/heavydb/test_text_encoding_dict.py::test_text_encoding_shared_dict[8] - TypeError: found no matching function type to given argument types `int8*, int32` and device `GPU`. Available f... FAILED rbc/tests/heavydb/test_text_encoding_dict.py::test_text_encoding_shared_dict[16] - TypeError: found no matching function type to given argument types `int8*, int32` and device `GPU`. Available ... FAILED rbc/tests/heavydb/test_text_encoding_dict.py::test_text_encoding_shared_dict[32] - TypeError: found no matching function type to given argument types `int8*, int32` and device `GPU`. Available ... FAILED rbc/tests/heavydb/test_text_encoding_dict.py::test_text_encoding_shared_dict2[8] - TypeError: found no matching function type to given argument types `int8*, int32` and device `GPU`. Available ... FAILED rbc/tests/heavydb/test_text_encoding_dict.py::test_text_encoding_shared_dict2[16] - TypeError: found no matching function type to given argument types `int8*, int32` and device `GPU`. Available... FAILED rbc/tests/heavydb/test_text_encoding_dict.py::test_text_encoding_shared_dict2[32] - TypeError: found no matching function type to given argument types `int8*, int32` and device `GPU`. Available... FAILED rbc/tests/heavydb/test_text_encoding_dict.py::test_text_encoding_shared_dict3[8-base] - TypeError: found no matching function type to given argument types `int8*, int32` and device `GPU`. Avail... FAILED rbc/tests/heavydb/test_text_encoding_dict.py::test_text_encoding_shared_dict3[8-other] - TypeError: found no matching function type to given argument types `int8*, int32` and device `GPU`. Avai... FAILED rbc/tests/heavydb/test_text_encoding_dict.py::test_text_encoding_shared_dict3[8-another] - TypeError: found no matching function type to given argument types `int8*, int32` and device `GPU`. Av... FAILED rbc/tests/heavydb/test_text_encoding_dict.py::test_text_encoding_shared_dict3[16-base] - TypeError: found no matching function type to given argument types `int8*, int32` and device `GPU`. Avai... FAILED rbc/tests/heavydb/test_text_encoding_dict.py::test_text_encoding_shared_dict3[16-other] - TypeError: found no matching function type to given argument types `int8*, int32` and device `GPU`. Ava... FAILED rbc/tests/heavydb/test_text_encoding_dict.py::test_text_encoding_shared_dict3[16-another] - TypeError: found no matching function type to given argument types `int8*, int32` and device `GPU`. A... FAILED rbc/tests/heavydb/test_text_encoding_dict.py::test_text_encoding_shared_dict3[32-base] - TypeError: found no matching function type to given argument types `int8*, int32` and device `GPU`. Avai... FAILED rbc/tests/heavydb/test_text_encoding_dict.py::test_text_encoding_shared_dict3[32-other] - TypeError: found no matching function type to given argument types `int8*, int32` and device `GPU`. Ava... FAILED rbc/tests/heavydb/test_text_encoding_dict.py::test_text_encoding_shared_dict3[32-another] - TypeError: found no matching function type to given argument types `int8*, int32` and device `GPU`. A... FAILED rbc/tests/heavydb/test_text_encoding_dict.py::test_text_encoding_column_list[1-8] - TypeError: found no matching function type to given argument types `int8*, int32` and device `GPU`. Available... FAILED rbc/tests/heavydb/test_text_encoding_dict.py::test_text_encoding_column_list[1-16] - TypeError: found no matching function type to given argument types `int8*, int32` and device `GPU`. Availabl... FAILED rbc/tests/heavydb/test_text_encoding_dict.py::test_text_encoding_column_list[1-32] - TypeError: found no matching function type to given argument types `int8*, int32` and device `GPU`. Availabl... FAILED rbc/tests/heavydb/test_text_encoding_dict.py::test_text_encoding_column_list[2-8] - TypeError: found no matching function type to given argument types `int8*, int32` and device `GPU`. Available... FAILED rbc/tests/heavydb/test_text_encoding_dict.py::test_text_encoding_column_list[2-16] - TypeError: found no matching function type to given argument types `int8*, int32` and device `GPU`. Availabl... FAILED rbc/tests/heavydb/test_text_encoding_dict.py::test_text_encoding_column_list[2-32] - TypeError: found no matching function type to given argument types `int8*, int32` and device `GPU`. Availabl... FAILED rbc/tests/heavydb/test_text_encoding_dict.py::test_text_encoding_column_list[3-8] - TypeError: found no matching function type to given argument types `int8*, int32` and device `GPU`. Available... FAILED rbc/tests/heavydb/test_text_encoding_dict.py::test_text_encoding_column_list[3-16] - TypeError: found no matching function type to given argument types `int8*, int32` and device `GPU`. Availabl... FAILED rbc/tests/heavydb/test_text_encoding_dict.py::test_text_encoding_column_list[3-32] - TypeError: found no matching function type to given argument types `int8*, int32` and device `GPU`. Availabl... FAILED rbc/tests/heavydb/test_text_encoding_dict.py::test_text_encoding_column_list2[32] - TypeError: found no matching function type to given argument types `int8*, int32` and device `GPU`. Available... FAILED rbc/tests/heavydb/test_text_encoding_dict.py::test_text_encoding_count[8] - TypeError: found no matching function type to given argument types `int8*, int32` and device `GPU`. Available functio... FAILED rbc/tests/heavydb/test_text_encoding_dict.py::test_text_encoding_count[16] - TypeError: found no matching function type to given argument types `int8*, int32` and device `GPU`. Available functi... FAILED rbc/tests/heavydb/test_text_encoding_dict.py::test_text_encoding_count[32] - TypeError: found no matching function type to given argument types `int8*, int32` and device `GPU`. Available functi... FAILED rbc/tests/heavydb/test_text_encoding_dict.py::test_text_encoding_order_by[8] - TypeError: found no matching function type to given argument types `int8*, int32` and device `GPU`. Available func... FAILED rbc/tests/heavydb/test_text_encoding_dict.py::test_text_encoding_order_by[16] - TypeError: found no matching function type to given argument types `int8*, int32` and device `GPU`. Available fun... FAILED rbc/tests/heavydb/test_text_encoding_dict.py::test_text_encoding_order_by[32] - TypeError: found no matching function type to given argument types `int8*, int32` and device `GPU`. Available fun... FAILED rbc/tests/heavydb/test_text_encoding_dict.py::test_getStringId[t1-foo] - TypeError: found no matching function type to given argument types `int8*, int32` and device `GPU`. Available function t... FAILED rbc/tests/heavydb/test_text_encoding_dict.py::test_getStringId[t1-bar] - TypeError: found no matching function type to given argument types `int8*, int32` and device `GPU`. Available function t... FAILED rbc/tests/heavydb/test_text_encoding_dict.py::test_getStringId[t1-invalid1234] - TypeError: found no matching function type to given argument types `int8*, int32` and device `GPU`. Available fu... FAILED rbc/tests/heavydb/test_text_encoding_dict.py::test_getStringId[t2-foo] - TypeError: found no matching function type to given argument types `int8*, int32` and device `GPU`. Available function t... FAILED rbc/tests/heavydb/test_text_encoding_dict.py::test_getStringId[t2-bar] - TypeError: found no matching function type to given argument types `int8*, int32` and device `GPU`. Available function t... FAILED rbc/tests/heavydb/test_text_encoding_dict.py::test_getStringId[t2-invalid1234] - TypeError: found no matching function type to given argument types `int8*, int32` and device `GPU`. Available fu... FAILED rbc/tests/heavydb/test_text_encoding_dict.py::test_getStringId[t4-foo] - TypeError: found no matching function type to given argument types `int8*, int32` and device `GPU`. Available function t... FAILED rbc/tests/heavydb/test_text_encoding_dict.py::test_getStringId[t4-bar] - TypeError: found no matching function type to given argument types `int8*, int32` and device `GPU`. Available function t... FAILED rbc/tests/heavydb/test_text_encoding_dict.py::test_getStringId[t4-invalid1234] - TypeError: found no matching function type to given argument types `int8*, int32` and device `GPU`. Available fu... FAILED rbc/tests/heavydb/test_text_encoding_dict.py::test_getStringId_unicode[t1] - TypeError: found no matching function type to given argument types `int8*, int32` and device `GPU`. Available functi... FAILED rbc/tests/heavydb/test_text_encoding_dict.py::test_getStringId_unicode[t2] - TypeError: found no matching function type to given argument types `int8*, int32` and device `GPU`. Available functi... FAILED rbc/tests/heavydb/test_text_encoding_dict.py::test_getStringId_unicode[t4] - TypeError: found no matching function type to given argument types `int8*, int32` and device `GPU`. Available functi... FAILED rbc/tests/heavydb/test_text_encoding_dict.py::test_empty_input_id - TypeError: found no matching function type to given argument types `int8*, int32` and device `GPU`. Available function types: FAILED rbc/tests/heavydb/test_text_encoding_dict.py::test_getString[t1] - TypeError: found no matching function type to given argument types `int8*, int32` and device `GPU`. Available function types: FAILED rbc/tests/heavydb/test_text_encoding_dict.py::test_getString[t2] - TypeError: found no matching function type to given argument types `int8*, int32` and device `GPU`. Available function types: FAILED rbc/tests/heavydb/test_text_encoding_dict.py::test_getString[t4] - TypeError: found no matching function type to given argument types `int8*, int32` and device `GPU`. Available function types: FAILED rbc/tests/heavydb/test_text_encoding_dict.py::test_getString_lst[t1] - TypeError: found no matching function type to given argument types `int8*, int32` and device `GPU`. Available function types: FAILED rbc/tests/heavydb/test_text_encoding_dict.py::test_getString_lst[t2] - TypeError: found no matching function type to given argument types `int8*, int32` and device `GPU`. Available function types: FAILED rbc/tests/heavydb/test_text_encoding_dict.py::test_getString_lst[t4] - TypeError: found no matching function type to given argument types `int8*, int32` and device `GPU`. Available function types: FAILED rbc/tests/heavydb/test_text_encoding_dict.py::test_udf_copy_dict_encoded_string[t1] - TypeError: found no matching function type to given argument types `int8*, int32` and device `GPU`. Availab... FAILED rbc/tests/heavydb/test_text_encoding_dict.py::test_to_text_encoding_none[to_text_encoding_none_1-t1] - TypeError: found no matching function type to given argument types `int8*, int32` and devi... FAILED rbc/tests/heavydb/test_text_encoding_dict.py::test_to_text_encoding_none[to_text_encoding_none_2-t1] - TypeError: found no matching function type to given argument types `int8*, int32` and devi... FAILED rbc/tests/heavydb/test_udtf.py::test_table_function_manager - TypeError: found no matching function type to given argument types `int8*, int64` and device `GPU`. Available function types: =========================================================== 55 failed, 1263 passed, 176 skipped, 6 xfailed, 466 warnings in 2041.04s (0:34:01) ============================================================ ```

UPDATE: the same errors are in the main branch as well.

UPDATE2 : the tests pass when running the heavydb --with-only flag. So this is not related to this PR.