File tree Expand file tree Collapse file tree
main/java/org/opensearch/sql/plugin/rest
test/java/org/opensearch/sql/plugin/rest Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ public RestUnifiedQueryAction(
7676 /**
7777 * Returns true iff the target index has {@link
7878 * IndexSettings#PLUGGABLE_DATAFORMAT_ENABLED_SETTING} set and {@link
79- * IndexSettings#PLUGGABLE_DATAFORMAT_VALUE_SETTING} is {@code "parquet "}, routing it to
79+ * IndexSettings#PLUGGABLE_DATAFORMAT_VALUE_SETTING} is {@code "composite "}, routing it to
8080 * DataFusion instead of the Calcite→DSL path.
8181 *
8282 * <p>Note: This creates a separate UnifiedQueryContext for parsing. The context cannot be shared
@@ -110,7 +110,7 @@ private boolean isPluggableDataformatIndex(String indexName) {
110110 }
111111 var settings = indexMetadata .getSettings ();
112112 return IndexSettings .PLUGGABLE_DATAFORMAT_ENABLED_SETTING .get (settings )
113- && "parquet " .equals (IndexSettings .PLUGGABLE_DATAFORMAT_VALUE_SETTING .get (settings ));
113+ && "composite " .equals (IndexSettings .PLUGGABLE_DATAFORMAT_VALUE_SETTING .get (settings ));
114114 }
115115
116116 /** Execute a query through the unified query pipeline on the sql-worker thread pool. */
Original file line number Diff line number Diff line change 2525
2626/**
2727 * Tests for analytics index routing in RestUnifiedQueryAction. Routing requires both {@code
28- * index.pluggable.dataformat.enabled=true} and {@code index.pluggable.dataformat=parquet }.
28+ * index.pluggable.dataformat.enabled=true} and {@code index.pluggable.dataformat=composite }.
2929 */
3030public class RestUnifiedQueryActionTest {
3131
@@ -57,7 +57,7 @@ public void pluggableDataformatIndexRoutesToAnalytics() {
5757 "parquet_logs" ,
5858 Settings .builder ()
5959 .put (IndexSettings .PLUGGABLE_DATAFORMAT_ENABLED_SETTING .getKey (), true )
60- .put (IndexSettings .PLUGGABLE_DATAFORMAT_VALUE_SETTING .getKey (), "parquet " )
60+ .put (IndexSettings .PLUGGABLE_DATAFORMAT_VALUE_SETTING .getKey (), "composite " )
6161 .build ());
6262
6363 assertTrue (action .isAnalyticsIndex ("source = parquet_logs | fields ts" , QueryType .PPL ));
You can’t perform that action at this time.
0 commit comments