-
Notifications
You must be signed in to change notification settings - Fork 55
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
DatetimeParseException for date expression #1
Comments
First of all, thanks for reaching out. That's odd. I just ran another test with Flink 1.12. and it is running.
|
Thanks for your quick response 👍 |
Here is the stack trace:
On my CentOS standalone cluster, the error appears. But when i execute it in a docker environment like this from Ververica, it is running. That's odd. |
It somehow seems to be related to your environment. I only found this SO question [1] that seems related, although the root cause differs. Maybe this helps in debugging. If there is anything I can do to help you debug this, let me know. |
Thanks for the research. This is a really weird problem. Unfortunately, neither the installation of AdoptOpenJDK hotspot (version 8 and 11) nor the downgrade of the rpm package tzdata/tzdata-java did anything. Maybe you can reproduce it in a Centos environment. |
I reproduced it in Flink1.12 with the following code:
|
maybe due to timezone? |
Which operation system / Java JRE do you use for the sql-client and flink cluster env @appleyuchi ? |
openjdk is uninstalled(I'm sure about this) My $FLINK_HOME/lib is as follows: I have added the following configuration into $FLINK_HOME/conf/flink-conf.yaml um.... |
If you have time ,you can control my computer via TeamViewer to reproduce it. |
Hi @appleyuchi, @O1lpunch3r, thanks for the continued interested in this issue. I was still not able to reproduce it (neither with Flink 1.12/11 or OpenJDK 8/11). Anyway, I have a guess that https://github.com/knaufk/flink-faker/tree/datetimeparsing might fix it. Could you check out this branch, Thanks, Konstantin |
I'll try it right now. |
However,before you close this issue, |
Great! Thank you for testing. If this also fixes it for @O1lpunch3r, I would merge to |
Great! It is working now. I have tested the example code of @appleyuchi and mine. Both are working with yout fix. Thank you @knaufk for fixing this. This connector is so great for testing. |
Set DateTimeFormatter locale to us. Resolves #1.
Thank you both for your help. I quickly released 0.1.1 with this fix included. |
Hello,
i use the faker plugin in flink-sql-client within my standalone-cluster.
I created the following table:
Adding was successfull, but then i just wanted to select from this table
But then the following error occured:
The dateformat shown there is the recommeded from your README, so what is the failure?
The text was updated successfully, but these errors were encountered: