-
Notifications
You must be signed in to change notification settings - Fork 5.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed when query hive table with custom InputFormat #4850
Comments
any response? |
Fixed by #7002. |
Hi I am still getting this error as below
This is the Input format getRecorder
and the custom Split as
Any idea, how do i solve this? @litao-buptsse @cawallin |
@litao-buptsse How did you solve the problem? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have a hive table with a custom InputFormat. When I query the hive table using presto, It throws the following exception:
Here is my SymlinkLzoTextInputFormat:
I found that com.facebook.presto.hive.HiveUtil.createRecordReader() will new a FileSplit() object, instead of get InputSplit from SymlinkLzoTextInputFormat.getSplits() which will return a SymlinkTextInputSplit array. So it cause Exception org.apache.hadoop.mapred.FileSplit cannot be cast to com.sogou.datadir.plugin.SymlinkLzoTextInputFormat$SymlinkTextInputSplit.
How about get InputSplit from inputFormat object's getInputSplit() method? I think it may be help me fix this problem.
The text was updated successfully, but these errors were encountered: