Skip to content

Commit bf77fe2

Browse files
committed
chen - add a todo for using name group API once we fully support JDK 20+
Signed-off-by: Jialiang Liang <[email protected]>
1 parent 25629e0 commit bf77fe2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,9 @@ public RelNode visitRex(Rex node, CalcitePlanContext context) {
282282
"Rex pattern must contain at least one named capture group");
283283
}
284284

285+
// TODO: Once JDK 20+ is supported, consider using Pattern.namedGroups() API for more efficient
286+
// named group handling instead of manual parsing in RegexCommonUtils
287+
285288
List<RexNode> newFields = new ArrayList<>();
286289
List<String> newFieldNames = new ArrayList<>();
287290

0 commit comments

Comments
 (0)