Skip to content

Commit

Permalink
fix compile
Browse files Browse the repository at this point in the history
  • Loading branch information
shuwenwei committed Jan 10, 2025
1 parent 68ee4a5 commit b956a65
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -349,39 +349,39 @@ private List<List<Object>> generateTabletResultSetForTable(
ValueConverter.convert(
sourceType,
targetType,
tablet.bitMaps[j].isMarked(i) ? null : ((long[]) values[j])[i]);
tablet.getBitMaps()[j].isMarked(i) ? null : ((long[]) values[j])[i]);
insertRecord.add(convert(value, targetType));
break;
case INT32:
value =
ValueConverter.convert(
sourceType,
targetType,
tablet.bitMaps[j].isMarked(i) ? null : ((int[]) values[j])[i]);
tablet.getBitMaps()[j].isMarked(i) ? null : ((int[]) values[j])[i]);
insertRecord.add(convert(value, targetType));
break;
case DOUBLE:
value =
ValueConverter.convert(
sourceType,
targetType,
tablet.bitMaps[j].isMarked(i) ? null : ((double[]) values[j])[i]);
tablet.getBitMaps()[j].isMarked(i) ? null : ((double[]) values[j])[i]);
insertRecord.add(convert(value, targetType));
break;
case FLOAT:
value =
ValueConverter.convert(
sourceType,
targetType,
tablet.bitMaps[j].isMarked(i) ? null : ((float[]) values[j])[i]);
tablet.getBitMaps()[j].isMarked(i) ? null : ((float[]) values[j])[i]);
insertRecord.add(convert(value, targetType));
break;
case DATE:
value =
ValueConverter.convert(
sourceType,
targetType,
tablet.bitMaps[j].isMarked(i)
tablet.getBitMaps()[j].isMarked(i)
? null
: DateUtils.parseDateExpressionToInt(((LocalDate[]) values[j])[i]));
insertRecord.add(convert(value, targetType));
Expand All @@ -392,28 +392,28 @@ private List<List<Object>> generateTabletResultSetForTable(
ValueConverter.convert(
sourceType,
targetType,
tablet.bitMaps[j].isMarked(i) ? null : ((Binary[]) values[j])[i]);
tablet.getBitMaps()[j].isMarked(i) ? null : ((Binary[]) values[j])[i]);
insertRecord.add(convert(value, targetType));
break;
case BLOB:
value =
ValueConverter.convert(
sourceType,
targetType,
tablet.bitMaps[j].isMarked(i) ? null : ((Binary[]) values[j])[i]);
tablet.getBitMaps()[j].isMarked(i) ? null : ((Binary[]) values[j])[i]);
insertRecord.add(convert(value, targetType));
break;
case BOOLEAN:
value =
ValueConverter.convert(
sourceType,
targetType,
tablet.bitMaps[j].isMarked(i) ? null : ((boolean[]) values[j])[i]);
tablet.getBitMaps()[j].isMarked(i) ? null : ((boolean[]) values[j])[i]);
insertRecord.add(convert(value, targetType));
break;
}
}
insertRecord.add(tablet.timestamps[i]);
insertRecord.add(tablet.getTimestamp(i));
insertRecords.add(insertRecord);
}

Expand Down

0 comments on commit b956a65

Please sign in to comment.