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

后端 未结 5 1161
甜味超标
甜味超标 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:20

    If version upgrade is not an available option, quick fix could be to rewrite ORC file using PIG. That seems to work just fine.

提交回复
热议问题