Skip to content
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

Port DH-11692: Add native support for java.time types #3385

Merged
merged 14 commits into from
Mar 3, 2023
Merged
Prev Previous commit
Next Next commit
spotless
nbauernfeind committed Mar 3, 2023

Verified

This commit was signed with the committer’s verified signature.
pupnewfster Sara Freimer
commit 87ed7ff0f583ee44aed24bed27e55eddc0d14f63
Original file line number Diff line number Diff line change
@@ -386,7 +386,7 @@ private WritableBooleanChunk equalValuesDest() {

@Override
public void shift(final long beginRange, final long endRange, final long shiftDelta) {
((ShiftData.RowSetShiftCallback)expectedSource).shift(
((ShiftData.RowSetShiftCallback) expectedSource).shift(
rowSet.subSetByKeyRange(beginRange, endRange), shiftDelta);
}

Original file line number Diff line number Diff line change
@@ -146,7 +146,7 @@ public void fillPrevChunkUnordered(
}

public void fillFromChunk(@NotNull FillFromContext context, @NotNull Chunk<? extends Values> src,
@NotNull RowSequence rowSequence) {
@NotNull RowSequence rowSequence) {
if (rowSequence.getAverageRunLengthEstimate() < USE_RANGES_AVERAGE_RUN_LENGTH) {
nanoSource.fillFromChunkByKeys(rowSequence, src, this::toNanos);
} else {
@@ -162,7 +162,7 @@ public void fillFromChunkUnordered(@NotNull FillFromContext context, @NotNull Ch

@Override
public void fillChunk(@NotNull FillContext context, @NotNull WritableChunk<? super Values> dest,
@NotNull RowSequence rowSequence) {
@NotNull RowSequence rowSequence) {
if (rowSequence.getAverageRunLengthEstimate() < USE_RANGES_AVERAGE_RUN_LENGTH) {
nanoSource.fillByKeys(dest, rowSequence, this::makeValue);
} else {
Original file line number Diff line number Diff line change
@@ -159,7 +159,7 @@ public DeltaAwareColumnSource(Class<T> type) {
deltaCapacityEnsurer = baselineCapacityEnsurer;

if (sparseBaseline instanceof SparseArrayColumnSource) {
preferredChunkSize = ((SparseArrayColumnSource<T>)sparseBaseline).getPreferredChunkSize();
preferredChunkSize = ((SparseArrayColumnSource<T>) sparseBaseline).getPreferredChunkSize();
} else {
preferredChunkSize = DEFAULT_PREFERRED_CHUNK_SIZE;
}