Skip to content

Commit ed159ba

Browse files
committed
Get rid of record class
Signed-off-by: Yuanchun Shen <[email protected]>
1 parent 42fde26 commit ed159ba

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

core/src/main/java/org/opensearch/sql/calcite/CalciteRelNodeVisitor.java

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
import java.util.stream.Collectors;
4343
import java.util.stream.IntStream;
4444
import java.util.stream.Stream;
45+
import lombok.AllArgsConstructor;
4546
import org.apache.calcite.adapter.enumerable.RexToLixTranslator;
4647
import org.apache.calcite.plan.RelOptTable;
4748
import org.apache.calcite.plan.ViewExpanders;
@@ -2541,8 +2542,15 @@ public RelNode visitChart(Chart node, CalcitePlanContext context) {
25412542
return relBuilder.peek();
25422543
}
25432544

2544-
private record ChartConfig(
2545-
int limit, boolean top, boolean useOther, boolean useNull, String otherStr, String nullStr) {
2545+
@AllArgsConstructor
2546+
private static class ChartConfig {
2547+
private final int limit;
2548+
private final boolean top;
2549+
private final boolean useOther;
2550+
private final boolean useNull;
2551+
private final String otherStr;
2552+
private final String nullStr;
2553+
25462554
static ChartConfig fromArguments(ArgumentMap argMap) {
25472555
int limit = (Integer) argMap.getOrDefault("limit", Chart.DEFAULT_LIMIT).getValue();
25482556
boolean top = (Boolean) argMap.getOrDefault("top", Chart.DEFAULT_TOP).getValue();

0 commit comments

Comments
 (0)