diff --git a/vector-stores/spring-ai-oracle-store/src/main/java/org/springframework/ai/vectorstore/OracleVectorStore.java b/vector-stores/spring-ai-oracle-store/src/main/java/org/springframework/ai/vectorstore/OracleVectorStore.java index 033ad048e0..d6cc9002a9 100644 --- a/vector-stores/spring-ai-oracle-store/src/main/java/org/springframework/ai/vectorstore/OracleVectorStore.java +++ b/vector-stores/spring-ai-oracle-store/src/main/java/org/springframework/ai/vectorstore/OracleVectorStore.java @@ -178,7 +178,7 @@ public enum OracleAIVectorSearchDistanceType { private final boolean removeExistingVectorStoreTable; - public final FilterExpressionConverter filterExpressionConverter = new IsoSqlJsonPathFilterExpressionConverter(); + public final FilterExpressionConverter filterExpressionConverter = new SqlJsonPathFilterExpressionConverter(); /** * Table name where vectors will be stored. diff --git a/vector-stores/spring-ai-oracle-store/src/main/java/org/springframework/ai/vectorstore/ISOSQLJSONPathFilterExpressionConverter.java b/vector-stores/spring-ai-oracle-store/src/main/java/org/springframework/ai/vectorstore/SqlJsonPathFilterExpressionConverter.java similarity index 95% rename from vector-stores/spring-ai-oracle-store/src/main/java/org/springframework/ai/vectorstore/ISOSQLJSONPathFilterExpressionConverter.java rename to vector-stores/spring-ai-oracle-store/src/main/java/org/springframework/ai/vectorstore/SqlJsonPathFilterExpressionConverter.java index 486928249d..ad3432b7cf 100644 --- a/vector-stores/spring-ai-oracle-store/src/main/java/org/springframework/ai/vectorstore/ISOSQLJSONPathFilterExpressionConverter.java +++ b/vector-stores/spring-ai-oracle-store/src/main/java/org/springframework/ai/vectorstore/SqlJsonPathFilterExpressionConverter.java @@ -9,7 +9,7 @@ * "https://docs.oracle.com/en/database/oracle/oracle-database/23/adjsn/json-path-expressions.html#GUID-8656CAB9-C293-4A99-BB62-F38F3CFC4C13">JSON * Path Documentation */ -public class IsoSqlJsonPathFilterExpressionConverter extends AbstractFilterExpressionConverter { +public class SqlJsonPathFilterExpressionConverter extends AbstractFilterExpressionConverter { @Override protected String convertOperand(final Filter.Operand operand) { diff --git a/vector-stores/spring-ai-oracle-store/src/test/java/org/springframework/ai/vectorstore/IsoSqlJsonPathFilterExpressionConverterTests.java b/vector-stores/spring-ai-oracle-store/src/test/java/org/springframework/ai/vectorstore/SqlJsonPathFilterExpressionConverterTests.java similarity index 74% rename from vector-stores/spring-ai-oracle-store/src/test/java/org/springframework/ai/vectorstore/IsoSqlJsonPathFilterExpressionConverterTests.java rename to vector-stores/spring-ai-oracle-store/src/test/java/org/springframework/ai/vectorstore/SqlJsonPathFilterExpressionConverterTests.java index e052a6b05e..23f35e2c92 100644 --- a/vector-stores/spring-ai-oracle-store/src/test/java/org/springframework/ai/vectorstore/IsoSqlJsonPathFilterExpressionConverterTests.java +++ b/vector-stores/spring-ai-oracle-store/src/test/java/org/springframework/ai/vectorstore/SqlJsonPathFilterExpressionConverterTests.java @@ -6,13 +6,13 @@ import org.springframework.ai.vectorstore.filter.Filter; import org.springframework.ai.vectorstore.filter.FilterExpressionTextParser; -public class IsoSqlJsonPathFilterExpressionConverterTests { +public class SqlJsonPathFilterExpressionConverterTests { @Test public void testNIN() { final Filter.Expression e = new FilterExpressionTextParser().parse("weather nin [\"windy\", \"rainy\"]"); - final String jsonPathExpression = new IsoSqlJsonPathFilterExpressionConverter().convertExpression(e); + final String jsonPathExpression = new SqlJsonPathFilterExpressionConverter().convertExpression(e); assertThat(jsonPathExpression).isEqualTo("$?( !( @.weather in ( \"windy\",\"rainy\" ) ) )"); } @@ -21,7 +21,7 @@ public void testNIN() { public void testNOT() { final Filter.Expression e = new FilterExpressionTextParser().parse("NOT( weather in [\"windy\", \"rainy\"] )"); - final String jsonPathExpression = new IsoSqlJsonPathFilterExpressionConverter().convertExpression(e); + final String jsonPathExpression = new SqlJsonPathFilterExpressionConverter().convertExpression(e); assertThat(jsonPathExpression).isEqualTo("$?( (!( @.weather in ( \"windy\",\"rainy\" ) )) )"); }