Uploaded image for project: 'Hue (READ ONLY)'
  1. Hue (READ ONLY)
  2. HUE-2224

[beeswax] Query editor does not properly split statements

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: backlog
    • Fix Version/s: 3.7.0
    • Component/s: con.hive
    • Labels:
      None

      Description

      Query editor does not take comments into account while splitting statements at semicolons. Also orphaned semicolons produce empty queries rather than being ignored completely. Following query will fail:

      – This is a comment;
      select * from <table_name> limit 100

      Also the following query executes without the limit operator:
      select * from <table_name> – This is a comment;
      limit 100

      The following query causes a parse exception because of an empty query in the beginning:

      ;
      select * from <table_name> limit 100

        Attachments

          Activity

            People

            • Assignee:
              ashu210890 Ashu Pachauri
              Reporter:
              ashu210890 Ashu Pachauri
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: