How to name a table column including dot?

眉间皱痕 提交于 2020-01-06 03:40:14

问题


I noticed that if I rename a column name include ., e.g., device.name, it would be automatically converted to device_name in BigQuery.

select Device device.name from mydataset.DeviceTable limit 10

Is there anyway I can use dot in column names?


回答1:


Dots are reserved for indicating nesting. You can import nested data via json import (e.g. {device: {name "foo"}} ).

Query results get flattened, and so dots in query results will get turned to underscores.



来源:https://stackoverflow.com/questions/13829677/how-to-name-a-table-column-including-dot

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!