taiyang-li commented on issue #6588:
URL: 
https://github.com/apache/incubator-gluten/issues/6588#issuecomment-2258148600

   线索2
   
   native insert  with `SET spark.sql.storeAssignmentPolicy = ANSI`. Notice 
that `ANSI` is default value.   
   ```
   $ orc-contents 
./part-00000-f7df5042-0bd8-4831-a40f-2b43d2309b3f.c000.lz4.orc 
   {"a": 0, "b": [{"key": "t1", "value": "a"}, {"key": "t2", "value": "b"}], 
"c": {"d": "1", "e": null}}
   ```
   
   ```
   0: jdbc:hive2://localhost:10000/> select * from tbl; 
   +----+----------------------+---------------------+-------------+
   | a  |          b           |          c          |     day     |
   +----+----------------------+---------------------+-------------+
   | 0  | {"t1":"a","t2":"b"}  | {"d":"1","e":null}  | 2024-01-08  |
   +----+----------------------+---------------------+-------------+
   1 row selected (0.284 seconds)
   ```
   
   
   native insert with `SET spark.sql.storeAssignmentPolicy = LEGACY` 
   ```
   $ orc-contents 
./part-00000-0c3bb661-97e9-4839-88ac-2ecb5d19a4e5.c000.lz4.orc 
   {"a": 0, "b": [{"key": "t1", "value": "a"}, {"key": "t2", "value": "b"}], 
"c": {"1": "1", "2": null}}
   ```
   ```
   0: jdbc:hive2://localhost:10000/> select * from tbl; 
   +----+----------------------+-------+-------------+
   | a  |          b           |   c   |     day     |
   +----+----------------------+-------+-------------+
   | 0  | {"t1":"a","t2":"b"}  | NULL  | 2024-01-08  |
   +----+----------------------+-------+-------------+
   1 row selected (0.899 seconds)
   ```
   
   


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


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

Reply via email to