Loading ORC Data into SQL DW using PolyBase

时间秒杀一切 提交于 2019-12-25 02:57:31

问题


I am trying to load ORC file format via PolyBase but I am facing below problems.

Problem:1

I have a CSV file which below code converts the csv file to ORC format but its selecting data from permanent table. If I remove "as select * from dbo.test" then create external table is not working. Permanent table contains 0 record.

 create external table test_orc
 with
 (
 location='/TEST/',
 DATA_SOURCE=SIMPLE,
 FILE_FORMAT=TEST_ORC
 )
 as select * from dbo.test ---Permanent Table

Problem:2

If I select the data from test_orc then I am getting invalid postscript error so, I removed my .csv file from the TEST directory. Is there any way to convert CSV to ORC file in different directory like TEST2.

Problem:3

If I select the data from test_orc then the count is zero and I am not getting any error.

select count(*) from test_orc---count is zero

Expectation

Need to load ORC file in the TEST directory to dbo.test table.

Please share your thought one this issue.

来源:https://stackoverflow.com/questions/54580657/loading-orc-data-into-sql-dw-using-polybase

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!