Stefanietry opened a new issue, #8199: URL: https://github.com/apache/paimon/issues/8199
### Search before asking - [x] I searched in the [issues](https://github.com/apache/paimon/issues) and found nothing similar. ### Paimon version 708ea8fc ### Compute Engine spark3.2 ### Minimal reproduce step 1. create vector table `CREATE TABLE test_db.test_table(gid BIGINT, sid STRING, embs ARRAY<FLOAT>) PARTITIONED BY (date STRING COMMENT 'date') ROW FORMAT SERDE 'org.apache.paimon.hive.PaimonSerDe' WITH SERDEPROPERTIES ('serialization.format'='1') STORED AS INPUTFORMAT 'org.apache.paimon.hive.mapred.PaimonInputFormat' OUTPUTFORMAT 'org.apache.paimon.hive.mapred.PaimonOutputFormat' TBLPROPERTIES ( 'file.format' = 'parquet', 'vector.file.format'='lance', 'vector-field'='embs', 'field.embs.vector-dim'='4', 'row-tracking.enabled'='true', 'data-evolution.enabled'='true', 'global-index.enabled' = 'true' );` 2. load data `insert overwrite table test_db.test_table VALUES (1, '1', array(cast(1.0 as float), cast(2.0 as float), cast(3.0 as float), cast(4.0 as float)) '20260420'),(2, '2', array(cast(1.0 as float), cast(2.0 as float), cast(3.0 as float), cast(4.0 as float)) '20260420'),(3, '3', array(cast(1.0 as float), cast(2.0 as float), cast(3.0 as float), cast(4.0 as float)) '20260420');` 3.generate vector index `CALL paimon.sys.create_global_index( `table` => 'test_db.test_table', `partitions` => "date='20260420'", `index_column` => 'embs', `index_type` => 'lumina-vector-ann', `options` => 'lumina.index.dimension=4' );` 5. proceess a query `select gid, embs from vector_search('test_db.test_table', 'embs', array(1.0f, 2.0f, 3.0f, 3.0f), 4294967297)` this query will return only one record ### What doesn't meet your expectations? In Scala, the conversion result of `case l: Long => l.toInt` is unstable; When l is greater than the maximum value of Int, positive numbers or negative numbers may occur. When a positive number appears, the number of data items returned does not match the expected value. Negative example: 2147483648L → -2147483648 Positive example: 4294967297L → 1 ### Anything else? _No response_ ### Are you willing to submit a PR? - [x] I'm willing to submit a PR! -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
