Skip to content

Commit

Permalink
Fix statement to store requested langType (#2777) (#2779)
Browse files Browse the repository at this point in the history
(cherry picked from commit b9f544b)

Signed-off-by: Tomoyuki Morita <moritato@amazon.com>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
1 parent 93588c8 commit e2c426b
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 e2c426b

Please sign in to comment.