Skip to content

Commit

Permalink
fix: ignore situation with only on bound
Browse files Browse the repository at this point in the history
  • Loading branch information
ycycse committed Jun 12, 2024
1 parent a1e2f8f commit 9d605b3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2112,6 +2112,9 @@ public static Pair<List<TTimePartitionSlot>, Pair<Boolean, Boolean>> getTimePart

private static void reserveMemoryForTimePartitionSlot(
long maxTime, long minTime, MPPQueryContext context) {
if (maxTime == Long.MAX_VALUE || minTime == Long.MIN_VALUE) {
return;
}
long size = TimePartitionUtils.getEstimateTimePartitionSize(minTime, maxTime);
context.reserveMemoryForFrontEnd(
RamUsageEstimator.shallowSizeOfInstance(TTimePartitionSlot.class) * size);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ public void testTimeLtEqFilter() {

@Test
public void testGetTimePartitionSlotList() {
MPPQueryContext context = new MPPQueryContext(new QueryId("time-partition-test"));
MPPQueryContext context = new MPPQueryContext(new QueryId("time_partition_test"));
// time >= 10 and time <= 9
Pair<List<TTimePartitionSlot>, Pair<Boolean, Boolean>> res =
getTimePartitionSlotList(
Expand Down

0 comments on commit 9d605b3

Please sign in to comment.