You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@inlong.apache.org by GitBox <gi...@apache.org> on 2022/12/15 03:41:05 UTC
[GitHub] [inlong] healchow commented on a diff in pull request #6832: [INLONG-6823][Sort] Parse the epoch date to normal date for Doris sink
healchow commented on code in PR #6832:
URL: https://github.com/apache/inlong/pull/6832#discussion_r1049185707
##########
inlong-sort/sort-connectors/doris/src/main/java/org/apache/inlong/sort/doris/table/DorisDynamicSchemaOutputFormat.java:
##########
@@ -251,6 +251,10 @@ public void open(int taskNumber, int numTasks) throws IOException {
this.fieldGetters = new RowData.FieldGetter[logicalTypes.length];
for (int i = 0; i < logicalTypes.length; i++) {
fieldGetters[i] = RowData.createFieldGetter(logicalTypes[i], i);
+ if (logicalTypes[i].toString().equalsIgnoreCase("DATE")) {
Review Comment:
```suggestion
if ("DATE".equalsIgnoreCase(logicalTypes[i].toString())) {
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@inlong.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org