-
Notifications
You must be signed in to change notification settings - Fork 335
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
[Bitsail] Refactor Oracle connector and add unit tests on util classes #82
Conversation
@ysamchu the unit tests are failing. |
I checked the test log. It fails on maven dependencies and seems not related to my change. Rerun the unit test and pass https://github.com/bytedance/bitsail/actions/runs/3374216700/jobs/5601154392. |
@@ -369,10 +364,10 @@ protected Double convertDoubleValue(Object value, String columnName, String colu | |||
return ((BigDecimal) value).doubleValue(); | |||
} | |||
throw new IllegalArgumentException(String | |||
.format("Unexpected value for JDBC type: %s and column %s", columnTypeName, columnName)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This debug message is quite useful to local the column that has an issue. Is there any reason we wanna make this change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The reason I made this change was because I didn't see a logic usage besides logging for columnName
and columnTypeName
. However it makes sense if we want those specific logs to easily locate issue. Will add columnName
and columnTypeName
back.
One follow-up question for this log: Original logging doesn't printout value
. Is there any reason (such as privacy concern) for doing so? If no then I can printout value
to help debugging.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't have a standard whether to log value
or not, some connectors does.
Overall LGTM~ |
2f94fe3
to
c196e19
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Signed-off-by:
Pre-Checklist
Note: Please complete ALL items in the following checklist.
Purpose
Refactor Oracle connector and add unit tests on util classes
Approaches
columnName
throughout JdbcValueConverter and its children classes.convertIntervalDSValue()
&convertIntervalYMValue()
=>convertInterval()
Related Issues
N/A
New Behavior (screenshots if needed)
N/A