Github user dongjoon-hyun commented on the issue:

    https://github.com/apache/spark/pull/14365
  
    It seems to exist some cases like the following (on the current master).
    
    On hive,
    ```sql
    CREATE TABLE t1 (a string) PARTITIONED BY (b string) STORED AS ORC;
    INSERT INTO TABLE t1 PARTITION (b='01') VALUES ('1');
    ```
    
    On `spark-shell`,
    ```scala
    scala> sql("select * from t1").show
    +---+---+
    |  a|  b|
    +---+---+
    |  1| 01|
    +---+---+
    
    scala> sql("set spark.sql.hive.convertMetastoreOrc=true").show
    +--------------------+-----+
    |                 key|value|
    +--------------------+-----+
    |spark.sql.hive.co...| true|
    +--------------------+-----+
    
    scala> sql("select * from t1").show
    16/12/07 05:17:19 ERROR Executor: Exception in task 0.0 in stage 2.0 (TID 2)
    java.lang.IllegalArgumentException: Field "a" does not exist.
    ```


---
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 [email protected] or file a JIRA ticket
with INFRA.
---

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

Reply via email to