j7nhai opened a new issue, #8716:
URL: https://github.com/apache/incubator-gluten/issues/8716

   ### Backend
   
   VL (Velox)
   
   ### Bug description
   
   This should throw exception if spark.sql.mapKeyDedupPolicy=EXCEPTION 
(spark's default)
   
   ```sql
   create table fun_map_src(k1 int, v1 int, k2 int, v2 int);
   insert into fun_map_src values (1, 3, 1, 4);
   select map(k1, v1, k2, v2) from fun_map_src;
   ```
   
   However, when gluten enabled, the output is
   
   ```sql
            > select map(k1, v1, k2, v2) from fun_map_src;
   25/02/12 17:48:00 WARN WholeStageTransformer: WholeStageCodegenTransformer 
(1) generating the substrait plan took: 7 ms.
   I20250212 17:48:01.671165 386506 Task.cpp:2051] Terminating task 
Gluten_Stage_0_TID_0_VTID_0 with state Finished after running for 25ms
   {1:4}
   ```
   
   (This look like LAST_WIN?)
   
   
   > Note, You should select from the table, not the constant value such as 
`select from Map(1, 3, 1, 4);`, because the in that way, the exception is from 
the plan phase.
   
   
   
   ### Spark version
   
   None
   
   ### Spark configurations
   
   _No response_
   
   ### System information
   
   _No response_
   
   ### Relevant logs
   
   ```bash
   
   ```


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