diqiu50 opened a new issue, #14066:
URL: https://github.com/apache/gravitino/issues/14066

   ### Version
   
   main branch
   
   ### Describe what's wrong
   
   `StarRocksTableOperations#getIndexes` maps every row of `SHOW INDEX` to 
`Index.IndexType.PRIMARY_KEY` and ignores `Index_type`. StarRocks `SHOW INDEX` 
only returns secondary indexes (BITMAP, NGRAMBF, GIN), not the table keys, so a 
BITMAP index is reported as a primary key while the real key model is not 
reported at all.
   
   ### Error message and/or stacktrace
   
   No error. Loaded indexes have the wrong type.
   
   ### How to reproduce
   
   1. In StarRocks, create `CREATE TABLE t (id INT NOT NULL, region 
VARCHAR(20), INDEX idx_region (region) USING BITMAP) PRIMARY KEY(id) 
DISTRIBUTED BY HASH(id) BUCKETS 1`.
   2. Load the table through Gravitino.
   3. `idx_region` is returned as a `PRIMARY_KEY` index.
   
   ### Additional context
   
   Verified on StarRocks 3.3. `Index_type` values are `BITMAP`, `NGRAMBF(...)` 
and `GIN(...)`.
   


-- 
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]

Reply via email to