-
-
Notifications
You must be signed in to change notification settings - Fork 283
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
javaConversions Doesnt work #19
Comments
ScalaPB is currently only compatible with proto2, not proto3 language level. Support for proto3 will be added soon. |
Alright, we will wait for it. Thanks for the excellent library. We will use it in new google grpc-scala project |
Is there an ETA on proto3 support? |
Proto3 is supported in v0.5.9. Can you try it and send feedback? On Mon, Jul 13, 2015 at 7:58 AM, Vy-Shane notifications@github.com wrote:
-Nadav |
Awesome, I'll try it out. |
Closing. Please feel to re-open if there are additional issues. |
I am facing lot of errors as below: I am using protobuf 2.5.0 as sparksql-protobuf didnt work with 2.6.1. My Scala version however is 2.11 I have changed scalapb.sbt to be: and build.sbt to have: Without these settings, protobuf3.0.0-beta was being used and it was not working |
Are you using sparksql-protobuf or sparksql-scalapb (https://github.com/trueaccord/sparksql-scalapb) ? The latter is known to work with 2.6.1, and ScalaPB is no longer tested with 2.5.0. I suggest to use latest protoc-jar, but tell it to use protoc 2.6.1:
If this doesn't help can you create a small project that demonstrate this issue? |
Thanks for the quick response. I am using https://github.com/saurfang/sparksql-protobuf https://github.com/saurfang/sparksql-protobuf. I wasn't aware of https://github.com/trueaccord/sparksql-scalapb https://github.com/trueaccord/sparksql-scalapb regards
|
Some more hints here: http://trueaccord.github.io/ScalaPB/sparksql.html On Mon, May 23, 2016 at 12:52 PM, skoppar notifications@github.com wrote:
|
Thank you :) I will keep you posted with my progress regards
|
Hi Nadav, Just sent you the project as a tgz file. Also FYI, the -v261 option in com.github.os72.protocjar.Protoc.runProtoc("-v261" +: args.toArray)) Unknown flag: -v To workaround, I just removed the flag. |
The -v261 flag will work if you update protoc-jar to the latest version. I verified it works with 3.0.0-b3 For the original issue, the problem is that your protos file don't have a |
Thank you. It works now. FYI: Just in case you would like to update the FAQ Details below: import com.xxx.proto.General val sfSchema = ProtoSQL.schemaFor[General] I get errors like : On Mon, May 23, 2016 at 2:02 PM, Nadav Samet notifications@github.com
|
Hi Nadav, I am trying to extend the DataSources API and facing challenges as the override def buildScan(): RDD[Row] = { } This does not work as messageToRow expects an object T and not a Row. Is On Mon, May 23, 2016 at 3:20 PM, Sunita Koppar <
|
You can do it in two steps, convert the base64 string to Array[Byte], using -Nadav On Wed, May 25, 2016 at 10:16 AM, skoppar notifications@github.com wrote:
-Nadav |
Thanks for your suggestions. I'm probably being dumb :(. It still doesnt override def buildScan(): RDD[Row] = { From the IDE, it seems to recognize the method calls and seems to still get [error] [error] [error] ^ [error] [error] [error] [error] [error] ^ [error] two errors found The case class generated does have *"extends *com.trueaccord.scalapb.GeneratedMessage *with Why is it not recognized as the type of the GeneratedMessage? regards On Wed, May 25, 2016 at 10:41 AM, Nadav Samet notifications@github.com
|
Also, curious as to why the method resolution turns out to be the java public static com.aol.proto.Accesslog.accesslog parseFrom(byte[] data) The package structure (com.aol.proto.Accesslog.accesslog) is that of the regards
|
Can you upload a test project? On Wed, May 25, 2016, 12:20 PM skoppar notifications@github.com wrote:
|
In the process of creating a test project I realized that I was using Java FYI, Regards
|
Attaching a publicly sharable project for this exercise. Please note, I was The error on executing this shows: Which is probable because I couldnt mock up the data well. The actual error I see is on the main project is: Is only parquet supported? After seeing the code for sparksql-protobuf, I regards On Wed, May 25, 2016 at 5:49 PM, Sunita Koppar <
|
Let's move the discussion to our mailing list as we are using Github Issues for bug reports.
Can't say much more without seeing the code or how you generate the test data. |
Not sure which is the mailing list id. Hopefully the one I am replying to Appreciate your timely responses. Didn't expect it on long weekend also. Regards On Saturday, May 28, 2016, Nadav Samet notifications@github.com wrote:
|
I linked to the mailing list above. I'm not sure I understand your question "if data needs to be parquet or not" - SparkSQL can read parquet or Json. ScalaPB can generate both. |
Hello. My env scala 2.11 protobuf 3 alpha
When i compiled it, java compiler show me this
For every class. At first I thought it was error with package, but when i comment class_name in protofie, it appeared again
When i turn off java conv it all work fine. It's bug?
The text was updated successfully, but these errors were encountered: