diff --git a/docs/user/ppl/cmd/ad.rst b/docs/user/ppl/cmd/ad.rst index 2a655e376e..103c7f7483 100644 --- a/docs/user/ppl/cmd/ad.rst +++ b/docs/user/ppl/cmd/ad.rst @@ -48,7 +48,7 @@ The example trains an RCF model and uses the model to detect anomalies in the ti PPL query:: - os> source=nyc_taxi | fields value, timestamp | AD time_field='timestamp' | where value=10844.0 + > source=nyc_taxi | fields value, timestamp | AD time_field='timestamp' | where value=10844.0 fetched rows / total rows = 1/1 +---------+---------------------+---------+-----------------+ | value | timestamp | score | anomaly_grade | @@ -63,7 +63,7 @@ The example trains an RCF model and uses the model to detect anomalies in the ti PPL query:: - os> source=nyc_taxi | fields category, value, timestamp | AD time_field='timestamp' category_field='category' | where value=10844.0 or value=6526.0 + > source=nyc_taxi | fields category, value, timestamp | AD time_field='timestamp' category_field='category' | where value=10844.0 or value=6526.0 fetched rows / total rows = 2/2 +------------+---------+---------------------+---------+-----------------+ | category | value | timestamp | score | anomaly_grade | @@ -80,7 +80,7 @@ The example trains an RCF model and uses the model to detect anomalies in the no PPL query:: - os> source=nyc_taxi | fields value | AD | where value=10844.0 + > source=nyc_taxi | fields value | AD | where value=10844.0 fetched rows / total rows = 1/1 +---------+---------+-------------+ | value | score | anomalous | @@ -95,7 +95,7 @@ The example trains an RCF model and uses the model to detect anomalies in the no PPL query:: - os> source=nyc_taxi | fields category, value | AD category_field='category' | where value=10844.0 or value=6526.0 + > source=nyc_taxi | fields category, value | AD category_field='category' | where value=10844.0 or value=6526.0 fetched rows / total rows = 2/2 +------------+---------+---------+-------------+ | category | value | score | anomalous | diff --git a/docs/user/ppl/cmd/kmeans.rst b/docs/user/ppl/cmd/kmeans.rst index ce991984d3..faf29d078b 100644 --- a/docs/user/ppl/cmd/kmeans.rst +++ b/docs/user/ppl/cmd/kmeans.rst @@ -30,7 +30,7 @@ The example shows how to classify three Iris species (Iris setosa, Iris virginic PPL query:: - os> source=iris_data | fields sepal_length_in_cm, sepal_width_in_cm, petal_length_in_cm, petal_width_in_cm | kmeans centroids=3 + > source=iris_data | fields sepal_length_in_cm, sepal_width_in_cm, petal_length_in_cm, petal_width_in_cm | kmeans centroids=3 +--------------------+-------------------+--------------------+-------------------+-----------+ | sepal_length_in_cm | sepal_width_in_cm | petal_length_in_cm | petal_width_in_cm | ClusterID | |--------------------+-------------------+--------------------+-------------------+-----------| diff --git a/doctest/build.gradle b/doctest/build.gradle index bf789e7434..8378d5ec00 100644 --- a/doctest/build.gradle +++ b/doctest/build.gradle @@ -105,6 +105,8 @@ String mlCommonsPlugin = 'opensearch-ml' testClusters { docTestCluster { keystore 'plugins.query.federation.catalog.config', new File("$projectDir/catalog", 'catalog.json') + // Disable loading of `ML-commons` plugin, because it might be unavailable (not released yet). + /* plugin(provider(new Callable(){ @Override RegularFile call() throws Exception { @@ -124,6 +126,7 @@ testClusters { } } })) + */ plugin ':opensearch-sql-plugin' testDistribution = 'integ_test' }