Skip to content

Commit

Permalink
Fix statement to store requested langType (#2777)
Browse files Browse the repository at this point in the history
Signed-off-by: Tomoyuki Morita <[email protected]>
  • Loading branch information
ykmr1224 authored Jun 26, 2024
1 parent b2403ca commit b9f544b
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
import org.opensearch.sql.spark.execution.statement.StatementId;
import org.opensearch.sql.spark.execution.statestore.SessionStorageService;
import org.opensearch.sql.spark.execution.statestore.StatementStorageService;
import org.opensearch.sql.spark.rest.model.LangType;
import org.opensearch.sql.spark.utils.TimeProvider;

/**
Expand Down Expand Up @@ -111,7 +110,7 @@ public StatementId submit(
.jobId(sessionModel.getJobId())
.statementStorageService(statementStorageService)
.statementId(statementId)
.langType(LangType.SQL)
.langType(request.getLangType())
.datasourceName(sessionModel.getDatasourceName())
.query(request.getQuery())
.queryId(qid)
Expand Down

0 comments on commit b9f544b

Please sign in to comment.