SandishKumarHN commented on code in PR #38344: URL: https://github.com/apache/spark/pull/38344#discussion_r1008417281
########## core/src/main/resources/error/error-classes.json: ########## @@ -706,6 +736,66 @@ ], "sqlState" : "42000" }, + "PROTOBUF_CLASS_LOAD_ERROR" : { + "message" : [ + "Could not load Protobuf class with name <protobufClassName><message>" + ] + }, + "PROTOBUF_DEPENDENCY_ERROR" : { + "message" : [ + "Could not find dependency: <dependencyName>" + ] + }, + "PROTOBUF_DESCRIPTOR_ERROR" : { + "message" : [ + "Error parsing descriptor byte[] into Descriptor object" + ] + }, + "PROTOBUF_DESCRIPTOR_PARSING_ERROR" : { + "message" : [ + "Error constructing FileDescriptor" + ] + }, + "PROTOBUF_FIELD_MISSING_ERROR" : { + "message" : [ + "Searching for <field> in Protobuf schema at <protobufSchema> gave <matchSize> matches. Candidates: <matches>" + ] + }, + "PROTOBUF_FIELD_MISSING_IN_CATALYST_SCHEMA" : { + "message" : [ + "Found <field> in Protobuf schema but there is no match in the SQL schema" + ] + }, + "PROTOBUF_FIELD_TYPE_MISMATCH" : { + "message" : [ + "Type mismatch encountered for field: <field>" + ] + }, + "PROTOBUF_MESSAGE_TYPE_ERROR" : { + "message" : [ + "<protobufClassName> is not a Protobuf message type" + ] + }, + "PROTOBUF_RECURSION_ERROR" : { + "message" : [ + "Found recursive reference in Protobuf schema, which can not be processed by Spark: <fieldDescriptor>" + ] + }, + "PROTOBUF_TYPE_NOT_SUPPORT_ERROR" : { + "message" : [ + "Protobuf type not yet supported: <protobufType>." + ] + }, + "PROTOBUF_TYPE_TO_CATALYST_TYPE_ERROR" : { + "message" : [ + "Unable to convert <protobufType> of Protobuf to SQL type <toType>." + ] + }, + "PROTOBUF_TYPE_TO_SQL_TYPE_ERROR" : { Review Comment: this is thrown when failing to convert protobuf fields into SQL type. ########## core/src/main/resources/error/error-classes.json: ########## @@ -706,6 +736,66 @@ ], "sqlState" : "42000" }, + "PROTOBUF_CLASS_LOAD_ERROR" : { + "message" : [ + "Could not load Protobuf class with name <protobufClassName><message>" + ] + }, + "PROTOBUF_DEPENDENCY_ERROR" : { + "message" : [ + "Could not find dependency: <dependencyName>" + ] + }, + "PROTOBUF_DESCRIPTOR_ERROR" : { + "message" : [ + "Error parsing descriptor byte[] into Descriptor object" + ] + }, + "PROTOBUF_DESCRIPTOR_PARSING_ERROR" : { + "message" : [ + "Error constructing FileDescriptor" + ] + }, + "PROTOBUF_FIELD_MISSING_ERROR" : { + "message" : [ + "Searching for <field> in Protobuf schema at <protobufSchema> gave <matchSize> matches. Candidates: <matches>" + ] + }, + "PROTOBUF_FIELD_MISSING_IN_CATALYST_SCHEMA" : { + "message" : [ + "Found <field> in Protobuf schema but there is no match in the SQL schema" + ] + }, + "PROTOBUF_FIELD_TYPE_MISMATCH" : { + "message" : [ + "Type mismatch encountered for field: <field>" + ] + }, + "PROTOBUF_MESSAGE_TYPE_ERROR" : { + "message" : [ + "<protobufClassName> is not a Protobuf message type" + ] + }, + "PROTOBUF_RECURSION_ERROR" : { + "message" : [ + "Found recursive reference in Protobuf schema, which can not be processed by Spark: <fieldDescriptor>" + ] + }, + "PROTOBUF_TYPE_NOT_SUPPORT_ERROR" : { + "message" : [ + "Protobuf type not yet supported: <protobufType>." + ] + }, + "PROTOBUF_TYPE_TO_CATALYST_TYPE_ERROR" : { Review Comment: this is thrown when failing to convert the protobuf message to SQL struct type. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org