【问题标题】:Tableau on BigQuery - Error connecting to nested dataBigQuery 上的 Tableau - 连接到嵌套数据时出错
【发布时间】:2017-07-18 10:52:18
【问题描述】:

我正在尝试使用嵌套字段连接到 google BigQuery 表。我正在使用 Tableau 10.1

当我拉入嵌套字段时出现以下错误。

Google BigQuery 服务无法编译查询。 无法识别的名称:field.column_1

但是,在 Tableau 9.3 中,没有这样的错误。有人可以建议为什么在较新的 Tableau 版本上会发生这种情况?以及如何解决?

【问题讨论】:

  • “拉入嵌套字段”是什么意思?您正在运行查询吗?
  • 我的意思是把嵌套的数据字段放到 tableau 的行或列中。

标签: google-bigquery tableau-api


【解决方案1】:

将 tableau 数据源设置更改为使用 google-bql(旧版 sql)解决了该问题。有两种方法可以完成此操作。

方法一:在文本编辑器中编辑tableau文件,将SQL连接方言从google-sql改为google-bql。

connection-dialect='google-bql'

这必须在每个画面工作簿中完成。

方法 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\ 文件夹中。这将强制 tableau 使用旧版 SQL 连接到 bigquery。这不是确切的 tableau 版本号,而是 sql-connection-dialect 设置可以解决问题。

更多信息请点击以下链接 - https://onlinehelp.tableau.com/current/pro/desktop/en-us/examples_googlebigquery.html

【讨论】:

    【解决方案2】:

    问题: Tableau 无法识别嵌套列名称(parent.child1.

    解决方案:我通过创建一个视图解决了这个问题,在该视图中我为每个嵌套列提供了一个别名(类似于parent.child1 as parent_child1parent.child2 as parent_child2)。

    然后引用 Tableau 中的视图。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-06-11
      • 2016-06-26
      • 2016-12-06
      • 1970-01-01
      • 2013-08-31
      • 1970-01-01
      • 1970-01-01
      • 2017-12-08
      相关资源
      最近更新 更多