Commit 931c717
committed
fix(bigquerystorage): pick the base64 alphabet up front instead of by fallback
Falling back through a caught IllegalArgumentException put an exception on the
happy path for every record when a producer uses the URL-safe alphabet. A value
containing - or _ is never valid standard base64, so the alphabet can be chosen
before decoding. The original exception is now kept as the cause.1 parent c4c78b9 commit 931c717
1 file changed
Lines changed: 12 additions & 11 deletions
File tree
- java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1
Lines changed: 12 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1122 | 1122 | | |
1123 | 1123 | | |
1124 | 1124 | | |
1125 | | - | |
1126 | | - | |
| 1125 | + | |
| 1126 | + | |
| 1127 | + | |
1127 | 1128 | | |
1128 | | - | |
| 1129 | + | |
1129 | 1130 | | |
1130 | 1131 | | |
1131 | 1132 | | |
1132 | | - | |
1133 | | - | |
1134 | | - | |
| 1133 | + | |
1135 | 1134 | | |
1136 | | - | |
1137 | | - | |
1138 | | - | |
1139 | | - | |
1140 | | - | |
1141 | 1135 | | |
| 1136 | + | |
| 1137 | + | |
| 1138 | + | |
| 1139 | + | |
| 1140 | + | |
| 1141 | + | |
| 1142 | + | |
1142 | 1143 | | |
1143 | 1144 | | |
1144 | 1145 | | |
| |||
0 commit comments