Skip to content

Commit c07ee86

Browse files
committed
Fixed failing test cases
1 parent b01f3c5 commit c07ee86

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

document-store/src/main/java/org/hypertrace/core/documentstore/expression/impl/JsonIdentifierExpression.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ public class JsonIdentifierExpression extends IdentifierExpression {
2020
String columnName; // e.g., "customAttr" (the top-level JSONB column)
2121
List<String> jsonPath; // e.g., ["myAttribute", "nestedField"]
2222

23+
public static JsonIdentifierExpression of(final String columnName) {
24+
throw new IllegalArgumentException(
25+
"JSON path cannot be null or empty. Use of(columnName, path...) instead.");
26+
}
27+
2328
public static JsonIdentifierExpression of(final String columnName, final String... pathElements) {
2429
if (pathElements == null || pathElements.length == 0) {
2530
// In this case, use IdentifierExpression

0 commit comments

Comments
 (0)