taoran92 opened a new issue, #11418:
URL: https://github.com/apache/paimon/issues/11418

   ### Search before asking
   
   - [x] I searched in the [issues](https://github.com/apache/paimon/issues) 
and found nothing similar.
   
   ### Paimon version
   
   2.2-SNAPSHOT, master at `88792ed0d15b6aec47e4bdef997fb3971914cecb`.
   
   ### Compute Engine
   
   Apache Spark 3.5.9.
   
   ### Minimal reproduce step
   
   With a Paimon Spark catalog named `spark_test`, create a Parquet-backed Data 
Evolution table with row tracking enabled:
   
   ```sql
   CREATE DATABASE IF NOT EXISTS spark_test.row_tracking_repro;
   CREATE TABLE spark_test.row_tracking_repro.docs (id BIGINT, content STRING) 
USING paimon
   TBLPROPERTIES (
       'file.format' = 'parquet',
       'bucket' = '-1',
       'row-tracking.enabled' = 'true',
       'data-evolution.enabled' = 'true'
   );
   INSERT INTO spark_test.row_tracking_repro.docs VALUES (1, 'Paimon search');
   SELECT id, content, _ROW_ID, _SEQUENCE_NUMBER
   FROM spark_test.row_tracking_repro.`docs$row_tracking`;
   ```
   
   ### What doesn't meet your expectations?
   
   Expected: reading row-tracking metadata that Paimon reconstructs from file 
metadata and row positions should not emit missing-column warnings.
   
   Actual: the query returns non-null `_ROW_ID` and `_SEQUENCE_NUMBER` values, 
but `ParquetReaderFactory` reports that these fields are missing and will be 
filled with null:
   
   ```text
   WARN ParquetReaderFactory: _ROW_ID does not exist in message paimon_schema { 
... }, will fill the field with null.
   WARN ParquetReaderFactory: _SEQUENCE_NUMBER does not exist in message 
paimon_schema { ... }, will fill the field with null.
   ```
   
   The warnings describe the physical Parquet schema without accounting for the 
metadata supplied by the Paimon reader, making a successful query look like a 
schema or data problem.
   
   ### Anything else?
   
   `full_text_search` and `vector_search` can also emit the `_ROW_ID` warning 
even when the query selects only application columns and 
`__paimon_search_score`.
   
   ### 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]

Reply via email to