gazelle_plugin
gazelle_plugin copied to clipboard
ArrayItemIndex: array_id range should over 64k of uint16_t representation
https://github.com/oap-project/gazelle_plugin/blob/174aad0ffaba4f3f7b665491dd9cfc44853c1528/native-sql-engine/cpp/src/codegen/arrow_compute/ext/array_item_index.h#L25-L33
Here the number of RecordBatch depends on per partition size. It maybe more than 64k,so it is better use uint32_t type.
Now when using uint32_t for ArrayItemIndex: array_id, caused many problems: crash and result mismatch. It was related to WSCG, so created this issue firstly.