crflynn / pbspark

protobuf pyspark conversion
MIT License
21 stars 5 forks source link

only patch the convert function when the parser is doing conversion #13

Closed crflynn closed 2 years ago

crflynn commented 2 years ago

This changes the patching of protobuf's json_format._ConvertScalarFieldValue so that it is only patched within the message conversion process of the pbspark parser. This is so that we don't break the functionality of protobuf outside of pbspark's operations.