Skip to content

Commit

Permalink
Remove AsyncQueryId (opensearch-project#2754)
Browse files Browse the repository at this point in the history
Signed-off-by: Tomoyuki Morita <[email protected]>
  • Loading branch information
ykmr1224 authored Jun 21, 2024
1 parent ef2cef3 commit 9ad4e02
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 38 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
import org.junit.Test;
import org.opensearch.action.admin.indices.delete.DeleteIndexRequest;
import org.opensearch.action.delete.DeleteRequest;
import org.opensearch.sql.spark.asyncquery.model.AsyncQueryId;
import org.opensearch.sql.spark.asyncquery.model.AsyncQueryRequestContext;
import org.opensearch.sql.spark.asyncquery.model.NullAsyncQueryRequestContext;
import org.opensearch.sql.spark.client.EMRServerlessClientFactory;
Expand All @@ -39,6 +38,7 @@
import org.opensearch.sql.spark.execution.xcontent.SessionModelXContentSerializer;
import org.opensearch.sql.spark.execution.xcontent.StatementModelXContentSerializer;
import org.opensearch.sql.spark.rest.model.LangType;
import org.opensearch.sql.spark.utils.IDUtils;
import org.opensearch.test.OpenSearchIntegTestCase;

public class StatementTest extends OpenSearchIntegTestCase {
Expand Down Expand Up @@ -368,8 +368,7 @@ public TestStatement run() {
}

private QueryRequest queryRequest() {
return new QueryRequest(
AsyncQueryId.newAsyncQueryId(TEST_DATASOURCE_NAME).getId(), LangType.SQL, "select 1");
return new QueryRequest(IDUtils.encode(TEST_DATASOURCE_NAME), LangType.SQL, "select 1");
}

private Statement createStatement(StatementId stId) {
Expand Down

0 comments on commit 9ad4e02

Please sign in to comment.