hologresjdbcwriter date类型处理问题导致数据错乱
Open
Beginner friendly
- Dominant language
- Java
- Stars
- 17.4k
- Forks
- 5.7k
- PR merge metrics
- No merged PRs in 30d
Description
case Types.DATE:
if (column.getByteSize() > 0) {
if (column instanceof LongColumn || column instanceof DateColumn) {
data.setObject(index, column.asLong());
} else {
data.setObject(index, column.asString());
}
}
这里应该处理成 data.setObject(index, new date(column.asLong())) , 不然date类型转换数据会错乱。
Contributor guide
No contributing guide indexed for this repository
Research direction
Start in the Hologres JDBC writer's handling of the Types.DATE branch and trace how LongColumn, DateColumn, and other column values reach data.setObject. Confirm the date conversion path against the issue's example, then verify that DATE values are no longer corrupted after writing.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- databases
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100