rdsr commented on a change in pull request #227: ORC column map fix
URL: https://github.com/apache/incubator-iceberg/pull/227#discussion_r325781215
 
 

 ##########
 File path: site/docs/spec.md
 ##########
 @@ -489,7 +489,7 @@ Lists must use the [3-level 
representation](https://github.com/apache/parquet-fo
 
 One of the interesting challenges with this is how to map Iceberg’s schema 
evolution (id based) on to ORC’s (name based). In theory, we could use 
Iceberg’s column ids as the column and field names, but that would suck from a 
user’s point of view. 
 
-The column ids would be stored in ORC’s user metadata as `iceberg.column.id` 
with a comma separated list of the ids.
+The column IDs must be stored in ORC type attributes using the key 
`iceberg.id`, and `iceberg.required` to store `"true"` if the Iceberg column is 
required, otherwise it will be optional.
 
 Review comment:
   Would it make sense to keep this consistent with Avro `AvroSchemaUtil` makes 
use of the following names
   ```
   public static final String ICEBERG_FIELD_NAME_PROP = "iceberg-field-name";
     public static final String FIELD_ID_PROP = "field-id";
     public static final String KEY_ID_PROP = "key-id";
     public static final String VALUE_ID_PROP = "value-id";
     public static final String ELEMENT_ID_PROP = "element-id";
   ```

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to