Github user dongjoon-hyun commented on the issue:
https://github.com/apache/spark/pull/15168
Hi, @gatorsmile .
It's the same behavior with Apache Spark 1.6.2. This PR doesn't make any
regression for Datasource tables. Actually, the error you mentioned is raised
by `HiveMetastore` since it's not Hive compatible table as you see the WARNING
below.
```scala
scala> sc.version
scala> sqlContext.range(1).select('id as 'a, 'id as 'b, 'id as 'c, 'id as
'd).write.partitionBy("d").saveAsTable("t1")
16/09/24 08:24:51 WARN HiveContext$$anon$2: Persisting partitioned data
source relation `t1` into Hive metastore in Spark SQL specific format, which is
NOT compatible with Hive. Input path(s):
file:/user/hive/warehouse/t1
scala> sql("DESC FORMATTED t1 partition (d=1)").show(100, false)
16/09/24 08:25:06 ERROR DDLTask: java.lang.RuntimeException: cannot find
field null from [0:col]
at
org.apache.hadoop.hive.serde2.objectinspector.ObjectInspectorUtils.getStandardStructFieldRef(ObjectInspectorUtils.java:416)
```
---
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]