-
Notifications
You must be signed in to change notification settings - Fork 280
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
Unable to persist into HBase using a custom coder #137
Comments
Narrowed down the issue to: core/src/main/scala/org/apache/spark/sql/execution/datasources/hbase/types/SHCDataType.scala The methods getConstructor and newInstance accept variable arguments.
|
Submitted a pull request #138 |
Thanks, @Srinathc. |
Hi @weiqingy , |
I see. Yes, for your case, I think you can comment it out to make it work. The reason why shc puts this restriction here is if the columns in the same hbase table have two different coders, e.g. one is PrimitiveType and one is Phoenix type, whose byte orders in Hbase are very different, that may bring issues to users. I am considering removing this restriction. @Srinathc Thanks for submitting PR. I'll review it very soon. |
Tried to persist a field of type "java.sql.Timestamp" by using a custom coder.
The instantiation of the coder fails with error "IllegalArgumentException: argument type mismatch".
Attaching sample code snippet.
SessionWriter.scala.txt
The text was updated successfully, but these errors were encountered: