apache / apache/doris-flink-connector

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

Open
#500 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
385
Forks
279
Avg merge
2d 2h
Merged PRs (30d)
6

Description

### Search before asking

- [X] I had searched in the [issues](https://github.com/apache/incubator-doris/issues?q=is%3Aissue) and found no similar issues.

### Version

1.16.0
1.16.2
24.0.0

### What's Wrong?

![image](https://github.com/user-attachments/assets/a5b2c11b-36f2-4c56-b1c4-6d61ccd0f284)

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](https://github.com/user-attachments/assets/33f9b438-1eff-4c01-979d-c0809ed90583)

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

- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)

Contributor guide

Open the contributing guide

Research direction

The issue names the Flink-Doris connector example and reports a DATE sink failure across the listed versions, but no source file or test is identified. Start by reproducing the example and tracing the DATE conversion from the connector input to the sink; done means the example no longer raises the Long-to-Integer ClassCastException and the expected DATE value is written.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
data-engineering, databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.