Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-2806

getting syntax error with the sql generated by Spotfire

Agile BoardAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Not A Bug
    • Impala 2.2
    • None
    • None

    Description

      Below query was generated by Spotfire automatically when prompts are added on the column "date_type".

      SELECT DISTINCT d1."date_type" AS "DATETYPE" FROM "Impala"."tatasky_prod"."deletion_wise_aggregation_data" d1 WHERE (d1."date_type" IS NOT NULL) ORDER BY "DATETYPE"

      Getting below JDBC error while refreshing the report.

      Failed to execute query: [Simba][ImpalaJDBCDriver](500051) ERROR processing query/statement. Error Code: 0, SQL state: TStatus(statusCode:
      ERROR_STATUS, sqlState:HY000, errorMessage:AnalysisException: Syntax error in line 1:

      SELECT DISTINCT d1."date_type" AS "DATETYPE" FR...
      ^
      Encountered: STRING LITERAL
      Expected: IDENTIFIER

      CAUSED BY: Exception: Syntax error
      ), Query:
      SELECT DISTINCT d1."date_type" AS "DATETYPE" FROM "Impala"."tatasky_prod"."deletion_wise_aggregation_data" d1 WHERE (d1."date_type" IS NOT NULL) ORDER BY "DATETYPE". (HRESULT: 80131509)

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            prasanna.kumar_impala_a0bb Prasanna Kumar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment