forked from apache/avro
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AVRO-2302 Fix invalid namespace on BigQuery import
This change fixes an issue when importing Avro files into BigQuery, when such files have been generated using `ProtobufData`. The schema namespace may end in a dollar sign, if using nested classes. The correction piggybacks on the fix provided for AVRO-2143 (apache#283). In it, `SpecificData` will attempt to load a class joining the namespace and the name with a dot, and if that fails, it tries again with a dollar sign. The same behaviour is hereby reused for `ProtobufData`.
- Loading branch information
1 parent
2eea14c
commit 67e1799
Showing
3 changed files
with
9 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters