我正在尝试使用嵌套字段连接到谷歌BigQuery表 . 我正在使用Tableau 10.1
当我拉入嵌套字段时,我收到以下错误 .
Google BigQuery服务无法编译查询 . 无法识别的名称:field.column_1
但是,使用Tableau 9.3,没有这样的错误 . 有人可以建议为什么在较新的Tableau版本上发生这种情况?以及如何解决?
更改tableau数据源设置以使用google-bql(旧版sql)解决了该问题 . 有两种方法可以完成这项工作 .
Method 1: 在文本编辑器中编辑tableau文件,并将SQL连接方言从google-sql更改为google-bql .
连接的方言=“由Google BQL”
必须在每个tableau工作簿中完成此操作 .
Method 2: 使用以下内容创建Tableau数据源自定义(示例:BigQueryCustomization.tdc) .
<connection-customization class='bigquery' enabled='true' version='10.0' > <vendor name='bigquery' /> <driver name='bigquery' /> <customizations> <customization name='connection-dialect' value='google-bql' /> </customizations> </connection-customization>
将它放在.. \ Documents \ My Tableau Repository \ Datasources \文件夹中 . 这将强制使用旧版SQL连接到bigquery . 这不是确切的画面版本号,而是sql-connection-dialect设置可以解决问题 .
以下链接的更多信息 - https://onlinehelp.tableau.com/current/pro/desktop/en-us/examples_googlebigquery.html
Issue: Tableau无法识别嵌套列名称(parent.child1 .
Solution: 我通过创建一个视图解决了这个问题,其中我为每个嵌套列提供了一个别名(类似于 parent.child1 as parent_child1 和 parent.child2 as parent_child2 ) .
parent.child1 as parent_child1
parent.child2 as parent_child2
然后引用Tableau中的View .
2 回答
更改tableau数据源设置以使用google-bql(旧版sql)解决了该问题 . 有两种方法可以完成这项工作 .
Method 1: 在文本编辑器中编辑tableau文件,并将SQL连接方言从google-sql更改为google-bql .
连接的方言=“由Google BQL”
必须在每个tableau工作簿中完成此操作 .
Method 2: 使用以下内容创建Tableau数据源自定义(示例:BigQueryCustomization.tdc) .
将它放在.. \ Documents \ My Tableau Repository \ Datasources \文件夹中 . 这将强制使用旧版SQL连接到bigquery . 这不是确切的画面版本号,而是sql-connection-dialect设置可以解决问题 .
以下链接的更多信息 - https://onlinehelp.tableau.com/current/pro/desktop/en-us/examples_googlebigquery.html
Issue: Tableau无法识别嵌套列名称(parent.child1 .
Solution: 我通过创建一个视图解决了这个问题,其中我为每个嵌套列提供了一个别名(类似于
parent.child1 as parent_child1
和parent.child2 as parent_child2
) .然后引用Tableau中的View .