You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@drill.apache.org by "Hao Zhu (JIRA)" <ji...@apache.org> on 2014/08/12 20:27:11 UTC

[jira] [Created] (DRILL-1291) If typing up botton in SQLline to show previous SQL in history, it only shows last line.

Hao Zhu created DRILL-1291:
------------------------------

             Summary: If typing up botton in SQLline to show previous SQL in history, it only shows last line.
                 Key: DRILL-1291
                 URL: https://issues.apache.org/jira/browse/DRILL-1291
             Project: Apache Drill
          Issue Type: Bug
          Components: Client - CLI
    Affects Versions: 0.4.0
         Environment: CentOS 6.4
Drill 0.4.0
            Reporter: Hao Zhu
            Priority: Minor


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:
{code}
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.
{code}

Need to fix this.



--
This message was sent by Atlassian JIRA
(v6.2#6252)