You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -293,6 +297,20 @@ public Builder dryRun(Boolean dryRun) {
293
297
returnthis;
294
298
}
295
299
300
+
/**
301
+
* Sets whether to use BigQuery's legacy SQL dialect for this query. If set to {@code false},
302
+
* the query will use BigQuery's <a href="https://cloud.google.com/bigquery/sql-reference/">
303
+
* Standard SQL</a>. When set to {@code false}, the values of
304
+
* {@link #allowLargeResults(Boolean)} and {@link #flattenResults(Boolean)} are ignored; query
305
+
* will be run as if {@link #allowLargeResults(Boolean)} is {@code true} and
306
+
* {@link #flattenResults(Boolean)} is {@code false}. If not set, legacy SQL dialect is used.
307
+
* This property is experimental and might be subject to change.
* Returns whether to use BigQuery's legacy SQL dialect for this query. If set to {@code false},
450
+
* the query will use BigQuery's <a href="https://cloud.google.com/bigquery/sql-reference/">
451
+
* Standard SQL</a>. When set to {@code false}, the values of {@link #allowLargeResults()} and
452
+
* {@link #flattenResults()} are ignored; query will be run as if {@link #allowLargeResults()} is
453
+
* {@code true} and {@link #flattenResults()} is {@code false}. If not set, legacy SQL dialect is
454
+
* used. This property is experimental and might be subject to change.
Copy file name to clipboardExpand all lines: gcloud-java-bigquery/src/main/java/com/google/cloud/bigquery/QueryRequest.java
+35-2Lines changed: 35 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -70,6 +70,7 @@ public final class QueryRequest implements Serializable {
70
70
privatefinalLongmaxWaitTime;
71
71
privatefinalBooleandryRun;
72
72
privatefinalBooleanuseQueryCache;
73
+
privatefinalBooleanuseLegacySql;
73
74
74
75
publicstaticfinalclassBuilder {
75
76
@@ -79,6 +80,7 @@ public static final class Builder {
79
80
privateLongmaxWaitTime;
80
81
privateBooleandryRun;
81
82
privateBooleanuseQueryCache;
83
+
privateBooleanuseLegacySql;
82
84
83
85
privateBuilder() {}
84
86
@@ -150,6 +152,17 @@ public Builder useQueryCache(Boolean useQueryCache) {
150
152
returnthis;
151
153
}
152
154
155
+
/**
156
+
* Sets whether to use BigQuery's legacy SQL dialect for this query. If set to {@code false},
157
+
* the query will use BigQuery's <a href="https://cloud.google.com/bigquery/sql-reference/">
158
+
* Standard SQL</a>. If not set, legacy SQL dialect is used. This property is experimental and
@@ -218,6 +232,16 @@ public Boolean useQueryCache() {
218
232
returnuseQueryCache;
219
233
}
220
234
235
+
/**
236
+
* Returns whether to use BigQuery's legacy SQL dialect for this query. If set to {@code false},
237
+
* the query will use BigQuery's <a href="https://cloud.google.com/bigquery/sql-reference/">
238
+
* Standard SQL</a>. If not set, legacy SQL dialect is used. This property is experimental and
239
+
* might be subject to change.
240
+
*/
241
+
publicBooleanuseLegacySql() {
242
+
returnuseLegacySql;
243
+
}
244
+
221
245
/**
222
246
* Returns a builder for the {@code QueryRequest} object.
0 commit comments