Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-1291

If typing up botton in SQLline to show previous SQL in history, it only shows last line.

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

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 0.4.0
    • 1.15.0
    • Client - CLI
    • None
    • CentOS 6.4
      Drill 0.4.0

    Description

      Sometimes if we want to execute previous SQL in SQLline, typing "up button" only shows last line of SQL but the full SQL text.

      For example:

      0: jdbc:drill:zk=admin.xxx.com:2181,hdw1.v> SELECT SCHEMA_NAME AS Database
      . . . . . . . . . . . . . . . . . . . . . . .> FROM INFORMATION_SCHEMA.SCHEMATA;
      +------------+
      |  Database  |
      +------------+
      | myhdfs.default |
      | myhdfs.root |
      | myhdfs.tmp |
      | dfs.default |
      | dfs.root   |
      | dfs.tmp    |
      | cp.default |
      | sys        |
      | INFORMATION_SCHEMA |
      +------------+
      9 rows selected (0.242 seconds)
      0: jdbc:drill:zk=admin.xxx.com:2181,hdw1.v> FROM INFORMATION_SCHEMA.SCHEMATA;
      Query failed: Failure while parsing sql. Encountered "FROM" at line 1, column 1.
      

      Need to fix this.

      Attachments

        Activity

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

          People

            arina Arina Ielchiieva
            haozhu Hao Zhu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment