Commit 2216a6e
fix(bigquery): preserve domain-scoped project IDs [CLAUDE] (#7693)
Domain-scoped (legacy) BigQuery project IDs have the form `domain.com:project-id`,
where the dots in the domain are part of the project identifier rather than path
separators. When such a project appeared in a backtick-quoted table reference
(e.g. `domain.com:project-id.region-us.INFORMATION_SCHEMA.JOBS`), the parser split
the whole name on dots, peeling `domain` off as the catalog and corrupting the
project ID into `com:project-id` — which BigQuery rejects as an invalid project ID.
Isolate the leading `domain.com:project-id` segment as the catalog before splitting
the remaining dataset/table parts, so the project ID round-trips losslessly.
Non-domain-scoped references are unaffected.
Co-authored-by: OpenCode google-vertex/claude-opus-4-8@default <noreply@opencode.ai>1 parent eb35b13 commit 2216a6e
2 files changed
Lines changed: 85 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
143 | 163 | | |
144 | 164 | | |
145 | 165 | | |
| |||
419 | 439 | | |
420 | 440 | | |
421 | 441 | | |
422 | | - | |
| 442 | + | |
423 | 443 | | |
424 | 444 | | |
425 | 445 | | |
| |||
478 | 498 | | |
479 | 499 | | |
480 | 500 | | |
481 | | - | |
| 501 | + | |
482 | 502 | | |
483 | 503 | | |
484 | 504 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
45 | 108 | | |
46 | 109 | | |
47 | 110 | | |
| |||
0 commit comments