【发布时间】:2016-12-21 12:05:49
【问题描述】:
在 BigQuery Legacy Sql 中,我们可以使用 float() 函数将 Integer 列转换为 float 类型。
BigQuery 标准 Sql 中的等价物是什么? 我试过这些命令:
我已经尝试过这些命令:
SELECT float(author.time_sec) FROM bigquery-public-data.github_repos.commits LIMIT 1000
SELECT cast(author.time_sec as float) FROM bigquery-public-data.github_repos.commits LIMIT 1000
他们都失败了。
【问题讨论】:
-
到目前为止您尝试过什么? cloud.google.com/bigquery/sql-reference/…
-
我试过这些命令:SELECT float(author.time_sec) FROM
bigquery-public-data.github_repos.commitsLIMIT 1000 SELECT cast(author.time_sec as float) FROMbigquery-public-data.github_repos.commitsLIMIT 1000 他们都失败了
标签: google-bigquery