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

[Bug]: Execute the instance sql and the connection is disconnected #3957

Open
Huangxiao-mas opened this issue Dec 4, 2024 · 0 comments
Open
Assignees
Labels
priority-medium type-bug Something isn't working
Milestone

Comments

@Huangxiao-mas
Copy link
Collaborator

ODC version

ODC432bp

OB version

oceanbase2277 oracle

What happened?

image

What did you expect to happen?

.

How can we reproduce it (as minimally and precisely as possible)?

SELECT
  "SYSTEM",
  "BRANCH",
  "CCY",
  "GL_CODE",
  "PROFIT_CENTRE",
  "PROD_TYPE",
  "BUSI_PROD",
  "MARKETING_PROD",
  "COMPANY",
  "RUN_DATE"
FROM
  (
    SELECT
      RECON,
      "SYSTEM",
      "BRANCH",
      "CCY",
      "GL_CODE",
      "PROFIT_CENTRE",
      "PROD_TYPE",
      "BUSI_PROD",
      "MARKETING_PROD",
      "COMPANY",
      "RUN_DATE"
    FROM
      (
        SELECT
          ROWNUM AS RECON,
          "SYSTEM",
          "BRANCH",
          "CCY",
          "GL_CODE",
          "PROFIT_CENTRE",
          "PROD_TYPE",
          "BUSI_PROD",
          "MARKETING_PROD",
          "COMPANY",
          "RUN_DATE"
        FROM
          (
            SELECT
              /*+ READ_CLUSTER(SLAVE), READ_CONSISTENCY(WEAK), NO_REWRITE */
              "SYSTEM",
              "BRANCH",
              "CCY",
              "GL_CODE",
              "PROFIT_CENTRE",
              "PROD_TYPE",
              "BUSI_PROD",
              "MARKETING_PROD",
              "COMPANY",
              "RUN_DATE"
            FROM
              "ENS_GL"."GL_PROD_BAL_HIST" PARTITION(P_202410)
            WHERE
              (
                (
                  ("SYSTEM" > ?)
                  or (
                    "SYSTEM" = ?
                    and "BRANCH" > ?
                  )
                  or (
                    "SYSTEM" = ?
                    and "BRANCH" = ?
                    and "CCY" > ?
                  )
                  or (
                    "SYSTEM" = ?
                    and "BRANCH" = ?
                    and "CCY" = ?
                    and "GL_CODE" > ?
                  )
                  or (
                    "SYSTEM" = ?
                    and "BRANCH" = ?
                    and "CCY" = ?
                    and "GL_CODE" = ?
                    and "PROFIT_CENTRE" > ?
                  )
                  or (
                    "SYSTEM" = ?
                    and "BRANCH" = ?
                    and "CCY" = ?
                    and "GL_CODE" = ?
                    and "PROFIT_CENTRE" = ?
                    and "PROD_TYPE" > ?
                  )
                  or (
                    "SYSTEM" = ?
                    and "BRANCH" = ?
                    and "CCY" = ?
                    and "GL_CODE" = ?
                    and "PROFIT_CENTRE" = ?
                    and "PROD_TYPE" = ?
                    and "BUSI_PROD" > ?
                  )
                  or (
                    "SYSTEM" = ?
                    and "BRANCH" = ?
                    and "CCY" = ?
                    and "GL_CODE" = ?
                    and "PROFIT_CENTRE" = ?
                    and "PROD_TYPE" = ?
                    and "BUSI_PROD" = ?
                    and "MARKETING_PROD" > ?
                  )
                  or (
                    "SYSTEM" = ?
                    and "BRANCH" = ?
                    and "CCY" = ?
                    and "GL_CODE" = ?
                    and "PROFIT_CENTRE" = ?
                    and "PROD_TYPE" = ?
                    and "BUSI_PROD" = ?
                    and "MARKETING_PROD" = ?
                    and "COMPANY" > ?
                  )
                  or (
                    "SYSTEM" = ?
                    and "BRANCH" = ?
                    and "CCY" = ?
                    and "GL_CODE" = ?
                    and "PROFIT_CENTRE" = ?
                    and "PROD_TYPE" = ?
                    and "BUSI_PROD" = ?
                    and "MARKETING_PROD" = ?
                    and "COMPANY" = ?
                    and "RUN_DATE" > TO_TIMESTAMP(?, ?)
                  )
                )
              )
              AND (
                (
                  ("SYSTEM" < ?)
                  or (
                    "SYSTEM" = ?
                    and "BRANCH" < ?
                  )
                  or (
                    "SYSTEM" = ?
                    and "BRANCH" = ?
                    and "CCY" < ?
                  )
                  or (
                    "SYSTEM" = ?
                    and "BRANCH" = ?
                    and "CCY" = ?
                    and "GL_CODE" < ?
                  )
                  or (
                    "SYSTEM" = ?
                    and "BRANCH" = ?
                    and "CCY" = ?
                    and "GL_CODE" = ?
                    and "PROFIT_CENTRE" < ?
                  )
                  or (
                    "SYSTEM" = ?
                    and "BRANCH" = ?
                    and "CCY" = ?
                    and "GL_CODE" = ?
                    and "PROFIT_CENTRE" = ?
                    and "PROD_TYPE" < ?
                  )
                  or (
                    "SYSTEM" = ?
                    and "BRANCH" = ?
                    and "CCY" = ?
                    and "GL_CODE" = ?
                    and "PROFIT_CENTRE" = ?
                    and "PROD_TYPE" = ?
                    and "BUSI_PROD" < ?
                  )
                  or (
                    "SYSTEM" = ?
                    and "BRANCH" = ?
                    and "CCY" = ?
                    and "GL_CODE" = ?
                    and "PROFIT_CENTRE" = ?
                    and "PROD_TYPE" = ?
                    and "BUSI_PROD" = ?
                    and "MARKETING_PROD" < ?
                  )
                  or (
                    "SYSTEM" = ?
                    and "BRANCH" = ?
                    and "CCY" = ?
                    and "GL_CODE" = ?
                    and "PROFIT_CENTRE" = ?
                    and "PROD_TYPE" = ?
                    and "BUSI_PROD" = ?
                    and "MARKETING_PROD" = ?
                    and "COMPANY" < ?
                  )
                  or (
                    "SYSTEM" = ?
                    and "BRANCH" = ?
                    and "CCY" = ?
                    and "GL_CODE" = ?
                    and "PROFIT_CENTRE" = ?
                    and "PROD_TYPE" = ?
                    and "BUSI_PROD" = ?
                    and "MARKETING_PROD" = ?
                    and "COMPANY" = ?
                    and "RUN_DATE" <= TO_TIMESTAMP(?, ?)
                  )
                )
              )
            ORDER BY
              "SYSTEM" ASC,
              "BRANCH" ASC,
              "CCY" ASC,
              "GL_CODE" ASC,
              "PROFIT_CENTRE" ASC,
              "PROD_TYPE" ASC,
              "BUSI_PROD" ASC,
              "MARKETING_PROD" ASC,
              "COMPANY" ASC,
              "RUN_DATE" ASC
          ) T1
        WHERE
          ROWNUM <= ?
      ) T2
    ORDER BY
      RECON DESC
  )
WHERE
  ROWNUM = ?

Anything else we need to know?

No response

@Huangxiao-mas Huangxiao-mas added type-bug Something isn't working priority-medium labels Dec 4, 2024
@Huangxiao-mas Huangxiao-mas added this to the ODC 4.3.3 milestone Dec 4, 2024
@Huangxiao-mas Huangxiao-mas added this to ODC Dec 4, 2024
@github-project-automation github-project-automation bot moved this to New in ODC Dec 4, 2024
@Huangxiao-mas Huangxiao-mas modified the milestones: ODC 4.3.3, ODC 4.3.4 Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority-medium type-bug Something isn't working
Projects
Status: New
Development

No branches or pull requests

2 participants