Open wangtf418 opened 5 months ago
I'm also having this issue. Originally I got this error SQL Error [1064] [42000]: getNextChunk failed, error: java.sql.SQLException: Zero date value prohibited
, which led me to add the jdbc parameter zeroDateTimeBehavior
, which of course does not work...
jdbc mysql does not support passing jdbc parameters。 When I pass parameters to jdbc_url,database name is placed after parameters,not before "?".
e.g. "jdbc_uri"="jdbc:mysql://172.16.0.241:3306?zeroDateTimeBehavior=CONVERT_TO_NULL", wrong: jdbc:mysql://172.16.0.241:3306?zeroDateTimeBehavior=CONVERT_TO_NULL/zz_med_stg right: jdbc:mysql://172.16.0.241:3306/zz_med_stg?zeroDateTimeBehavior=CONVERT_TO_NULL
Steps to reproduce the behavior (Required)
Real behavior (Required)
ERROR 1064 (HY000): open JDBCScanner failed, error: com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: The connection property 'zeroDateTimeBehavior' acceptable values are: 'CONVERT_TO_NULL', 'EXCEPTION' or 'ROUND'. The value 'CONVERT_TO_NULL/zz_med_stg' is not acceptable.
StarRocks version (Required)