Repository navigation
Commit 5d5d330
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 5d5d330
2 files changed
Lines changed: 13 additions & 19 deletions
File tree
- java-bigquerystorage/google-cloud-bigquerystorage/src
- main/java/com/google/cloud/bigquery/storage/v1
- test/java/com/google/cloud/bigquery/storage/v1
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1120 | 1120 | | |
1121 | 1121 | | |
1122 | 1122 | | |
1123 | | - | |
1124 | | - | |
1125 | | - | |
1126 | | - | |
| 1123 | + | |
| 1124 | + | |
1127 | 1125 | | |
1128 | | - | |
| 1126 | + | |
1129 | 1127 | | |
1130 | 1128 | | |
1131 | 1129 | | |
1132 | | - | |
1133 | | - | |
1134 | | - | |
| 1130 | + | |
1135 | 1131 | | |
1136 | | - | |
1137 | | - | |
1138 | | - | |
1139 | | - | |
1140 | | - | |
1141 | 1132 | | |
| 1133 | + | |
| 1134 | + | |
| 1135 | + | |
| 1136 | + | |
| 1137 | + | |
| 1138 | + | |
| 1139 | + | |
1142 | 1140 | | |
1143 | 1141 | | |
1144 | 1142 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1123 | 1123 | | |
1124 | 1124 | | |
1125 | 1125 | | |
1126 | | - | |
1127 | | - | |
1128 | 1126 | | |
1129 | 1127 | | |
1130 | 1128 | | |
| |||
1140 | 1138 | | |
1141 | 1139 | | |
1142 | 1140 | | |
1143 | | - | |
1144 | | - | |
| 1141 | + | |
1145 | 1142 | | |
1146 | 1143 | | |
1147 | 1144 | | |
| |||
1185 | 1182 | | |
1186 | 1183 | | |
1187 | 1184 | | |
1188 | | - | |
1189 | | - | |
| 1185 | + | |
1190 | 1186 | | |
1191 | 1187 | | |
1192 | 1188 | | |
| |||
0 commit comments