Spark SQL on ORC files doesn't return correct Schema (Column names)

后端 未结 5 1182
甜味超标
甜味超标 2020-12-21 09:55

I have a directory containing ORC files. I am creating a DataFrame using the below code

var data = sqlContext.sql(\"SELECT * FROM orc.`/directory/containing/         


        
5条回答
  •  北荒
    北荒 (楼主)
    2020-12-21 10:13

    The problem is the Hive version, which is 1.2.1, which has this bug HIVE-4243

    This was fixed in 2.0.0.

提交回复
热议问题