Bigquery: fail to change filed name -
Bigquery: fail to change filed name -
we changing filed naming convention uppercamelcase. realized if it's single-word name, bq ignore case changes. example, when ran next query, field names changed expected, except 'speed', 'ignition','latitude' , 'longitude' remained in lower case.... wonder if it's bug or special consideration? gave huge issue when migrating our big info in thousands of tables new naming convention
select file_date_time filelastmodifiedtime ,driver_id driverid ,date_time datetime ,latitude latitude ,longitude longitude ,gps_valid gpsvalid ,ignition ignition ,speed speed ,gps_reason gpsreason ,zip_code zipcode mytable
this bug. field names in bigquery case-insensitive , should able alter case of field using aliases. i've filed bug internally.
a workaround no-op typecast, cause apply alias exact casing. example, if speed int: select ... integer(speed) speed, ...
google-bigquery
Comments
Post a Comment