Skip to content

Java Input Binding does not work with Date and Time types #422

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

Closed
lucyzhang929 opened this issue Oct 25, 2022 · 0 comments
Closed

Java Input Binding does not work with Date and Time types #422

lucyzhang929 opened this issue Oct 25, 2022 · 0 comments
Assignees
Labels
Milestone

Comments

@lucyzhang929
Copy link
Contributor

lucyzhang929 commented Oct 25, 2022

The java worker throws the following errors when using a Java input binding on a table with Date and Time column types.
Date:

Exception: ParseException: Unparseable date: "2022-10-25T00:00:00.000Z"
Stack: com.google.gson.JsonSyntaxException: Failed parsing '2022-10-25T00:00:00.000Z' as SQL Date; at path $[0].Date

Time:

Exception: ParseException: Unparseable date: "11:50:12"
[2022-10-25T18:50:37.437Z] Stack: com.google.gson.JsonSyntaxException: Failed parsing '11:50:12' as SQL Time; at path $[0].Time

Current workaround is to use String instead of java.sql.Date and java.sql.Time

This depends on the Java worker adding support for customizing the GSON serializer: Azure/azure-functions-java-worker#424.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants