Skip to content
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

[Bug] flink doris connector type conversion error while sink DATE type of data #500

Open
2 of 3 tasks
SmiMi opened this issue Oct 14, 2024 · 2 comments
Open
2 of 3 tasks

Comments

@SmiMi
Copy link

SmiMi commented Oct 14, 2024

Search before asking

  • I had searched in the issues and found no similar issues.

Version

1.16.0
1.16.2
24.0.0

What's Wrong?

image

When I run the example, I get the following error:

java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.Integer

What You Expected?

image

Whether this should use Long type

How to Reproduce?

No response

Anything Else?

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

@vinlee19
Copy link
Contributor

i will fix it later

@JNSimba
Copy link
Member

JNSimba commented Oct 17, 2024

It is recommended to use (int)LocalDate.now().toEpochDay() under forced conversion. Flink uses int for internal transmission https://github.com/search?q=repo%3Aapache%2Fflink%20toEpochDay&type=code

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

No branches or pull requests

3 participants