Skip to content

Commit 72ae1ff

Browse files
authored
bigquery: allow user to set null schema (#2510)
Schema can be set to null in a response we get from server. However, we do not allow the user to set to null, causing confusion. This commit fixes this by allowing user to set null schema. Fixes #2477.
1 parent 1889962 commit 72ae1ff

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/TableDefinition.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ B setType(Type type) {
147147
* Sets the table schema.
148148
*/
149149
public B setSchema(Schema schema) {
150-
this.schema = checkNotNull(schema);
150+
this.schema = schema;
151151
return self();
152152
}
153153

0 commit comments

Comments
 (0)