4paradigm / 4paradigm/OpenMLDB
Kafka connector: date type cannot use string in JSON
- Dominant language
- C++
- Stars
- 1.7k
- Forks
- 331
- Avg merge
- 12d 12h
- Merged PRs (30d)
- 1
Description
**Bug Description**
+ version: v0.6.0
Date type cannot use string in JSON, but timestamp should be used. For example, 1659512628000 can be used, but "2022-08-03" cannot be used
**Expected Behavior**
Compatible string types
**Steps to Reproduce**
1.
2.
3.
4.
Contributor guide
Research direction
Look for the Kafka connector code in the OpenMLDB source, likely under connectors/ or similar. Examine how date types are parsed from JSON input. The issue is that string date formats like "2022-08-03" are not accepted, only numeric timestamps. Find the relevant parsing logic and extend it to handle common string date formats. Testing will involve setting up a Kafka connector test with JSON containing string dates.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- kafka
- Domain
- data-engineering, databases
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100