【发布时间】:2018-02-15 22:05:07
【问题描述】:
我已成功将 RDS 数据库连接为 Google Data Studio 上的数据源。表中的表和字段也显示正确的数据类型。
但在尝试使用此数据源创建报告时,Time Dimension 维度会出错:
Failed to execute connection with error: Value '0000-00-00 00:00:00' can not be represented as java.sql.Timestamp
我尝试在连接时将zeroDateTimeBehavior=convertToNull 添加到数据库名称字段,但 Google Data Studio 不接受连接。
知道如何在某些时间戳为0000-00-00 00:00:00 时使其工作吗?
【问题讨论】:
-
更大的问题是这些零时间戳最初是如何出现的。
-
@TimBiegeleisen 我们有一个名为
last_login的字段,由于用户尚未登录,它可能永远不会被激活。 -
你还能显示失败的查询吗?还是在您到达那一步之前就发生了错误?
-
尝试创建
time series图表时出现错误,其中一个维度是time dimension -
您可能需要清理源表。问题是,您的报告工具可能会尝试将零时间戳转换为自纪元以来的秒数,然后失败。
标签: mysql datetime datasource rds google-data-studio