Github user maropu commented on the issue:

    https://github.com/apache/spark/pull/16410
  
    This fix change some existing behaviour in datasource.
    For instance,
    ```
    scala> sql("""CREATE TABLE testTable(a INT, b INT, c INT, d INT) USING 
PARQUET PARTITIONED BY (b, c)""")
    scala> sql("""INSERT INTO TABLE testTable PARTITION (b=14, c) SELECT 13, 
15, 16""").explain
    scala> sql("""SELECT * FROM testTable""").show
    ```
    
    ```
    // A new column ordering
    +---+---+---+---+
    |  a|  b|  c|  d|
    +---+---+---+---+
    | 13| 14| 15| 16|
    +---+---+---+---+
    ```
    
    ```
    // An old column ordering
    +---+---+---+---+
    |  a|  d|  b|  c|
    +---+---+---+---+
    | 13| 15| 14| 16|
    +---+---+---+---+
    ```
    I'm not sure this is acceptable, so welcome any advices.
    cc: @cloud-fan 



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to