Open wendigo opened 5 days ago
Looks like a compatibility issue specific to DescriptorProtos
(and probably the other WKT) which are bundled with the Java runtime. BigQuerySchemaUtil (dep of trino) has code written to handle v3.25.5 gencode for DescriptorProtos.FieldOptions
but is unfortunately actually getting v4.28.2 gencode from the Java runtime.
DescriptorProtos.FieldOptions
gencode extends GeneratedMessage.ExtendableMessage in v4.28.2, which doesn't have shims for the deprecated hasExtension()
method that were added to GeneratedMessageV3.ExtendableMessage for binary compatibility with older v3.25.5 gencode.
This isn't quite an old gencode + new runtime binary compatibility issue, but rather user code calling old gencode + new gencode issue. Currently, I think BigQuerySchemaUtil would need to be updated to remove the deprecated method call in order to upgrade. We may need to consider other ways to avoid this for WKT's shipped with the Java runtime.
What version of protobuf and what language are you using? Version: 4.28.2 Language: Java
What operating system (Linux, Windows, ...) and version?
MacOS/Linux
What runtime / compiler are you using (e.g., python version or gcc version)
Compiler: 3.x, runtime: 4.28.2
What did you do? Steps to reproduce the behavior:
What did you expect to see
BigQuery client working
What did you see instead?
Anything else we should know about your project / environment