Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Refactor] Duplicate data on request and result index #532

Open
noCharger opened this issue Aug 7, 2024 · 1 comment
Open

[Refactor] Duplicate data on request and result index #532

noCharger opened this issue Aug 7, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@noCharger
Copy link
Collaborator

noCharger commented Aug 7, 2024

Source code: https://github.com/opensearch-project/opensearch-spark/blame/48dda0a027aa484c0005088627d35afaf7014ad3/spark-sql-application/src/main/scala/org/apache/spark/sql/FlintREPL.scala#L556

Example doc:

      {
        "_index" : "query_execution_result_mys3",
        "_id" : "yK6DlJABde6HgsleEtmC",
        "_score" : 7.67105,
        "_source" : {
          "jobRunId" : "00fkn6eqlq74i80n",
          "applicationId" : "00fhilguerb53e0l",
          "dataSourceName" : "mys3",
          "status" : "FAILED",
          "error" : "{\"Message\":\"Fail to run query. Cause: Unable to verify existence of default database: ..."}",
          "queryId" : "YWdwQ3l5N3dEVm15czM=",
          "queryText" : "SHOW SCHEMAS IN `mys3`",
          "sessionId" : "b3lDaXd2YW1DdG15czM=",
          "jobType" : "interactive",
          "updateTime" : 1720478536170,
          "queryRunTime" : 489
        }
      }

            {
        "_index" : ".query_execution_request_mys3",
        "_id" : "YWdwQ3l5N3dEVm15czM=",
        "_score" : 2.1390336,
        "_source" : {
          "version" : "1.0",
          "type" : "statement",
          "state" : "failed",
          "statementId" : "YWdwQ3l5N3dEVm15czM=",
          "sessionId" : "b3lDaXd2YW1DdG15czM=",
          "applicationId" : "00fhilguerb53e0l",
          "jobId" : "00fkn6eqlq74i80n",
          "lang" : "sql",
          "dataSourceName" : "mys3",
          "query" : "SHOW SCHEMAS IN `mys3`",
          "queryId" : "YWdwQ3l5N3dEVm15czM=",
          "submitTime" : 1720478533925,
          "error" : "{\"Message\":\"Fail to run query. Cause: Unable to verify existence of default database: ..."}"
        }
      },
@noCharger noCharger added the enhancement New feature or request label Aug 7, 2024
@dblock dblock removed the untriaged label Aug 26, 2024
@dblock
Copy link
Member

dblock commented Aug 26, 2024

[Catch All Triage - 1, 2, 3, 4, 5]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants