我已成功将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
时如何使这个工作?
您可以尝试使用SQL解决它,但是您将丢失一些数据。例如:
SELECT * FROM table
WHERE date != 0;