-
Notifications
You must be signed in to change notification settings - Fork 645
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
datatime in mysql 8 not supported by InstantColumn #1241
Comments
这是来自QQ邮箱的假期自动回复邮件。你好,我最近正在休假中,无法亲自回复你的邮件。我将在假期结束后,尽快给你回复。
|
Hi @Robert-Qiu. It seems the jdbc driver reports the This is currently not supported, but you should be able to force the column type by calling this before reading from the db:
You should get a I'm not able to test this right now, so please let us know if that solves your problem. |
* Correct error message in InstantColumn (see jtablesaw#1241) * TemporalMapFunctions parameterized with column * Move plusXXX() methods not supported by Instants to DateTimeMapFunctions * Remove tests not feasible on InstantColumn * DateTime and Instant Fillers testing * TemporalMapFunctions testing for Instants * Additional testing for DateTime and Instant columns * Correct comparison for millisecond precision
the exception is
java.lang.IllegalArgumentException: Cannot append java.time.LocalDateTime to DateTimeColumn at tech.tablesaw.api.InstantColumn.appendObj(InstantColumn.java:276) at tech.tablesaw.api.InstantColumn.appendObj(InstantColumn.java:60)
I study the code, it seems that InstantColumn not support LocalDateTime type
@Override public InstantColumn appendObj(Object obj) { if (obj == null) { return appendMissing(); } if (obj instanceof Instant) { return append((Instant) obj); } if (obj instanceof Timestamp) { Timestamp timestamp = (Timestamp) obj; return append(timestamp.toInstant()); } throw new IllegalArgumentException( "Cannot append " + obj.getClass().getName() + " to DateTimeColumn"); }
The text was updated successfully, but these errors were encountered: