2017-09-01 13 views
0

apache drill 1.11.0を使用して、以下のcsvファイルでselect *クエリを試行しています。ApacheドリルでこのCSVファイルを読み取ることができません

id,email,first_name,last_name,middle_name,suffix,work_phone,mobile_phone,gender,picture,speciality,taxonomy_code,education_details,experience_details,keywords,doctor_npi,wait_time,created_tstamp,created_by,last_updated_tstamp,last_updated_by,is_deleted 
1,[email protected],XXXXX,XXXX,,Dr,912225711234,,M,assets/images/doctorIcon.png,Primary Care Physician,Primary Care Doctor,M.D,3 years,Primary Care Doctor,1043259765,10,2015-04-22 17:20:48.0,,2015-12-16 12:06:27.0,,N 
2,[email protected],XXXX,XXXX,,Dr,913375311234,,M,assets/images/doctorIcon.png,Eye Doctor,EYE Care Doctor,MD,5 years,,1619932076,20,2015-04-30 11:07:57.0,,2015-11-07 08:49:57.0,,N 

私はこのエラーを取得する:

org.apache.drill.common.exceptions.UserRemoteException: DATA_READ ERROR: Error processing input: , line=1, char=292. Content parsed: [ ] Failure while reading file file:/..... Happened at or shortly before byte position 292. Fragment 0:0 [Error Id: 1ce7d94a-c06e-4633-af97-f3eceb1b5350 on 172.16.16.57:31010] 

ここで間違っていますか?

答えて

0

何とか列ヘッダー名「接尾辞」が機能していません。私が他のヘッダー名を使用する場合、それは動作します。

1

Apache Drillのバグだと思われますが、Praveenは問題が接尾辞列に結びついています。サフィックス列は、ドリルの4つの暗黙的な列(filename、suffix、fqn、filepath)[1]に含まれます。ここで期待される挙動は、エラーではなく暗黙の列サフィックス出力(すなわち、csv)の結果であると考えられていた。私はそれのためにJiraを提出します。

カラム名が暗黙的カラムと同じ名前である場合は、ALTER SYSTEM|SESSION SETコマンドを使用して、デフォルトの暗黙的カラム名を変更できます。例えば : ALTER session SET `drill.exec.storage.implicit.suffix.column.label` = 'appendix';

[1] https://drill.apache.org/docs/querying-a-file-system-introduction/

+0

作成のJira - https://issues.apache.org/jira/browse/DRILL-5767 –

関連する問題