sijocherian / google-bigquery

Automatically exported from code.google.com/p/google-bigquery
0 stars 0 forks source link

Field Mode is NULLABLE when we get it from Query Response. #266

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

I am using Google .NET Client Library (Google BigQuery in C# application using 
Service Account Authorization). 

What steps will reproduce the problem?
1. Create New Field with Mode as 'REQUIRED'.
2. Execute the Query. 'SELECT * From TableName LIMIT 1' using .NET Client 
Library.
3. Get the Table Schema From Above Query Response, Now the field mode get 
changed into 'NULLABLE'

What is the expected output? What do you see instead?

I am Expecting the Same Mode when we retrieve from Query Response Schema, 
Instead of changing all field mode into NULLABLE.

What version of the product are you using? On what operating system?

I am using Google BigQuery, Windows 7 OS.

Thanks.

Original issue reported on code.google.com by raj.selv...@gmail.com on 19 Jun 2015 at 7:12

GoogleCodeExporter commented 9 years ago
Even simple queries can potentially change the mode or schema of their output. 
If you'd like to get the schema of a table, please use the tables.get method 
instead.

Original comment by jcon...@google.com on 23 Jun 2015 at 4:39