diff --git a/.gitignore b/.gitignore index 2b1f9be522..1b892036dd 100644 --- a/.gitignore +++ b/.gitignore @@ -47,4 +47,6 @@ gen .java-version .worktrees -http-client.env.json \ No newline at end of file +http-client.env.json +/doctest/sql-cli/ +.factorypath diff --git a/docs/user/ppl/interfaces/protocol.rst b/docs/user/ppl/interfaces/protocol.rst index a76dba301b..d3706e7f20 100644 --- a/docs/user/ppl/interfaces/protocol.rst +++ b/docs/user/ppl/interfaces/protocol.rst @@ -129,7 +129,7 @@ PPL query:: { "error": { "reason": "Error occurred in OpenSearch engine: no such index [unknown]", - "details": "[unknown] IndexNotFoundException[no such index [unknown]]\nFor more details, please send request for Json format to see the raw response from OpenSearch engine.", + "details": "org.opensearch.index.IndexNotFoundException: no such index [unknown]\nFor more details, please send request for Json format to see the raw response from OpenSearch engine.", "type": "IndexNotFoundException" }, "status": 404 diff --git a/doctest/build.gradle b/doctest/build.gradle index 4fa0e6e00f..273d51fce2 100644 --- a/doctest/build.gradle +++ b/doctest/build.gradle @@ -19,9 +19,12 @@ def path = project(':').projectDir // plugin module, and will only build ppl in it. def plugin_path = project(':doctest').projectDir -task cloneSqlCli(type: Exec) { +task cloneSqlCli() { // clone the sql-cli repo locally - commandLine 'git', 'clone', 'https://github.com/opensearch-project/sql-cli.git' + def cliRepo = new File("$projectDir/sql-cli") + if(!cliRepo.exists()) { + exec { commandLine 'git', 'clone', 'https://github.com/opensearch-project/sql-cli.git' } + } } task bootstrap(type: Exec, dependsOn: ['cloneSqlCli']) {