brkyvz commented on issue #26293: [SPARK-29595][SQL] Insertion with named_struct should match by name URL: https://github.com/apache/spark/pull/26293#issuecomment-549477511 I agree with @cloud-fan. I think it's the standard, therefore intentional. I'm not sure if you specify the column names explicitly whether it turns into a by name insert though, e.g. ```sql $ create table str using parquet as(select named_struct('a', 1, 'b', 2) as data); $ insert into str ((b, a) as data) values named_struct('b', 4, 'a', 1); ```
---------------------------------------------------------------- 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]
