Commit 41be8e3
committed
Fix information_schema query failures in BigQuery connector
In 212e1bb the toRemoteTable method called listTables unconditionally instead of returning early if case-insensitive name matching is not enabled. That caused query failures for information_schema queries because instead of an early return it tried to list tables in a remote schema called `information_schema` (which isn't intended). This change fixes the issue by making the listTables call lazy by using a Supplier instead of a materialized iterable.1 parent 0dfafc8 commit 41be8e3
File tree
1 file changed
+8
-2
lines changed- plugin/trino-bigquery/src/main/java/io/trino/plugin/bigquery
1 file changed
+8
-2
lines changedLines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
44 | 45 | | |
45 | 46 | | |
46 | 47 | | |
| |||
113 | 114 | | |
114 | 115 | | |
115 | 116 | | |
116 | | - | |
| 117 | + | |
117 | 118 | | |
118 | 119 | | |
119 | 120 | | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
120 | 126 | | |
121 | 127 | | |
122 | 128 | | |
| |||
134 | 140 | | |
135 | 141 | | |
136 | 142 | | |
137 | | - | |
| 143 | + | |
138 | 144 | | |
139 | 145 | | |
140 | 146 | | |
| |||
0 commit comments