[Impala-ASF-CR] IMPALA-2751: Matching quotes are not required in comments

2018-06-12 Thread Impala Public Jenkins (Code Review)
Impala Public Jenkins has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/10541 )

Change subject: IMPALA-2751: Matching quotes are not required in comments
..


Patch Set 7: Verified+1


--
To view, visit http://gerrit.cloudera.org:8080/10541
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I2feae34026a7e63f3d31489f757f093a73ca5d2c
Gerrit-Change-Number: 10541
Gerrit-PatchSet: 7
Gerrit-Owner: Fredy Wijaya 
Gerrit-Reviewer: Fredy Wijaya 
Gerrit-Reviewer: Impala Public Jenkins 
Gerrit-Reviewer: Michael Brown 
Gerrit-Reviewer: Thomas Marshall 
Gerrit-Reviewer: Tim Armstrong 
Gerrit-Comment-Date: Wed, 13 Jun 2018 00:22:56 +
Gerrit-HasComments: No


[Impala-ASF-CR] IMPALA-2751: Matching quotes are not required in comments

2018-06-12 Thread Impala Public Jenkins (Code Review)
Impala Public Jenkins has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/10541 )

Change subject: IMPALA-2751: Matching quotes are not required in comments
..


Patch Set 7:

Build started: https://jenkins.impala.io/job/gerrit-verify-dryrun/2645/


--
To view, visit http://gerrit.cloudera.org:8080/10541
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I2feae34026a7e63f3d31489f757f093a73ca5d2c
Gerrit-Change-Number: 10541
Gerrit-PatchSet: 7
Gerrit-Owner: Fredy Wijaya 
Gerrit-Reviewer: Fredy Wijaya 
Gerrit-Reviewer: Impala Public Jenkins 
Gerrit-Reviewer: Michael Brown 
Gerrit-Reviewer: Thomas Marshall 
Gerrit-Reviewer: Tim Armstrong 
Gerrit-Comment-Date: Tue, 12 Jun 2018 21:09:18 +
Gerrit-HasComments: No


[Impala-ASF-CR] IMPALA-2751: Matching quotes are not required in comments

2018-06-12 Thread Impala Public Jenkins (Code Review)
Impala Public Jenkins has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/10541 )

Change subject: IMPALA-2751: Matching quotes are not required in comments
..


Patch Set 7: Code-Review+2


--
To view, visit http://gerrit.cloudera.org:8080/10541
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I2feae34026a7e63f3d31489f757f093a73ca5d2c
Gerrit-Change-Number: 10541
Gerrit-PatchSet: 7
Gerrit-Owner: Fredy Wijaya 
Gerrit-Reviewer: Fredy Wijaya 
Gerrit-Reviewer: Impala Public Jenkins 
Gerrit-Reviewer: Michael Brown 
Gerrit-Reviewer: Thomas Marshall 
Gerrit-Reviewer: Tim Armstrong 
Gerrit-Comment-Date: Tue, 12 Jun 2018 21:09:17 +
Gerrit-HasComments: No


[Impala-ASF-CR] IMPALA-2751: Matching quotes are not required in comments

2018-06-12 Thread Michael Brown (Code Review)
Michael Brown has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/10541 )

Change subject: IMPALA-2751: Matching quotes are not required in comments
..


Patch Set 6: Code-Review+2


--
To view, visit http://gerrit.cloudera.org:8080/10541
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I2feae34026a7e63f3d31489f757f093a73ca5d2c
Gerrit-Change-Number: 10541
Gerrit-PatchSet: 6
Gerrit-Owner: Fredy Wijaya 
Gerrit-Reviewer: Fredy Wijaya 
Gerrit-Reviewer: Impala Public Jenkins 
Gerrit-Reviewer: Michael Brown 
Gerrit-Reviewer: Thomas Marshall 
Gerrit-Reviewer: Tim Armstrong 
Gerrit-Comment-Date: Tue, 12 Jun 2018 21:08:49 +
Gerrit-HasComments: No


[Impala-ASF-CR] IMPALA-2751: Matching quotes are not required in comments

2018-06-12 Thread Tim Armstrong (Code Review)
Tim Armstrong has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/10541 )

Change subject: IMPALA-2751: Matching quotes are not required in comments
..


Patch Set 6:

We could go ahead with this one I think, if the reviewers are ok with it.


--
To view, visit http://gerrit.cloudera.org:8080/10541
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I2feae34026a7e63f3d31489f757f093a73ca5d2c
Gerrit-Change-Number: 10541
Gerrit-PatchSet: 6
Gerrit-Owner: Fredy Wijaya 
Gerrit-Reviewer: Fredy Wijaya 
Gerrit-Reviewer: Impala Public Jenkins 
Gerrit-Reviewer: Michael Brown 
Gerrit-Reviewer: Thomas Marshall 
Gerrit-Reviewer: Tim Armstrong 
Gerrit-Comment-Date: Tue, 12 Jun 2018 20:25:56 +
Gerrit-HasComments: No


[Impala-ASF-CR] IMPALA-2751: Matching quotes are not required in comments

2018-06-12 Thread Tim Armstrong (Code Review)
Tim Armstrong has removed a vote on this change.

Change subject: IMPALA-2751: Matching quotes are not required in comments
..


Removed Code-Review-2 by Tim Armstrong 
--
To view, visit http://gerrit.cloudera.org:8080/10541
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: deleteVote
Gerrit-Change-Id: I2feae34026a7e63f3d31489f757f093a73ca5d2c
Gerrit-Change-Number: 10541
Gerrit-PatchSet: 6
Gerrit-Owner: Fredy Wijaya 
Gerrit-Reviewer: Fredy Wijaya 
Gerrit-Reviewer: Impala Public Jenkins 
Gerrit-Reviewer: Michael Brown 
Gerrit-Reviewer: Thomas Marshall 
Gerrit-Reviewer: Tim Armstrong 


[Impala-ASF-CR] IMPALA-2751: Matching quotes are not required in comments

2018-06-07 Thread Fredy Wijaya (Code Review)
Fredy Wijaya has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/10541 )

Change subject: IMPALA-2751: Matching quotes are not required in comments
..


Patch Set 6:

Rebased


--
To view, visit http://gerrit.cloudera.org:8080/10541
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I2feae34026a7e63f3d31489f757f093a73ca5d2c
Gerrit-Change-Number: 10541
Gerrit-PatchSet: 6
Gerrit-Owner: Fredy Wijaya 
Gerrit-Reviewer: Fredy Wijaya 
Gerrit-Reviewer: Impala Public Jenkins 
Gerrit-Reviewer: Michael Brown 
Gerrit-Reviewer: Thomas Marshall 
Gerrit-Reviewer: Tim Armstrong 
Gerrit-Comment-Date: Thu, 07 Jun 2018 21:23:45 +
Gerrit-HasComments: No


[Impala-ASF-CR] IMPALA-2751: Matching quotes are not required in comments

2018-06-07 Thread Fredy Wijaya (Code Review)
Fredy Wijaya has uploaded a new patch set (#6). ( 
http://gerrit.cloudera.org:8080/10541 )

Change subject: IMPALA-2751: Matching quotes are not required in comments
..

IMPALA-2751: Matching quotes are not required in comments

This patch fixes the issue where non-matching quotes inside comments
will cause the shell to not terminate.

The fix is to strip any SQL comments before sending to shlex since shlex
does not understand SQL comments and will raise an exception when it
sees unmatched quotes regardless whether the quotes are in the comments or
not.

Testing:
- Added new shell tests
- Ran all end-to-end shell tests on Python 2.6 and Python 2.7

Change-Id: I2feae34026a7e63f3d31489f757f093a73ca5d2c
---
M shell/impala_shell.py
M tests/shell/test_shell_interactive.py
2 files changed, 26 insertions(+), 6 deletions(-)


  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/41/10541/6
--
To view, visit http://gerrit.cloudera.org:8080/10541
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I2feae34026a7e63f3d31489f757f093a73ca5d2c
Gerrit-Change-Number: 10541
Gerrit-PatchSet: 6
Gerrit-Owner: Fredy Wijaya 
Gerrit-Reviewer: Fredy Wijaya 
Gerrit-Reviewer: Impala Public Jenkins 
Gerrit-Reviewer: Michael Brown 
Gerrit-Reviewer: Thomas Marshall 
Gerrit-Reviewer: Tim Armstrong 


[Impala-ASF-CR] IMPALA-2751: Matching quotes are not required in comments

2018-06-07 Thread Fredy Wijaya (Code Review)
Fredy Wijaya has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/10541 )

Change subject: IMPALA-2751: Matching quotes are not required in comments
..


Patch Set 5:

> Patch Set 5: Verified-1
>
> Build failed: https://jenkins.impala.io/job/gerrit-verify-dryrun/2618/

Failed because of IMPALA-7143, I'll rebase later.


--
To view, visit http://gerrit.cloudera.org:8080/10541
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I2feae34026a7e63f3d31489f757f093a73ca5d2c
Gerrit-Change-Number: 10541
Gerrit-PatchSet: 5
Gerrit-Owner: Fredy Wijaya 
Gerrit-Reviewer: Fredy Wijaya 
Gerrit-Reviewer: Impala Public Jenkins 
Gerrit-Reviewer: Michael Brown 
Gerrit-Reviewer: Thomas Marshall 
Gerrit-Reviewer: Tim Armstrong 
Gerrit-Comment-Date: Thu, 07 Jun 2018 20:00:10 +
Gerrit-HasComments: No


[Impala-ASF-CR] IMPALA-2751: Matching quotes are not required in comments

2018-06-07 Thread Impala Public Jenkins (Code Review)
Impala Public Jenkins has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/10541 )

Change subject: IMPALA-2751: Matching quotes are not required in comments
..


Patch Set 5: Verified-1

Build failed: https://jenkins.impala.io/job/gerrit-verify-dryrun/2618/


--
To view, visit http://gerrit.cloudera.org:8080/10541
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I2feae34026a7e63f3d31489f757f093a73ca5d2c
Gerrit-Change-Number: 10541
Gerrit-PatchSet: 5
Gerrit-Owner: Fredy Wijaya 
Gerrit-Reviewer: Fredy Wijaya 
Gerrit-Reviewer: Impala Public Jenkins 
Gerrit-Reviewer: Michael Brown 
Gerrit-Reviewer: Thomas Marshall 
Gerrit-Reviewer: Tim Armstrong 
Gerrit-Comment-Date: Thu, 07 Jun 2018 19:58:23 +
Gerrit-HasComments: No


[Impala-ASF-CR] IMPALA-2751: Matching quotes are not required in comments

2018-06-07 Thread Tim Armstrong (Code Review)
Tim Armstrong has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/10541 )

Change subject: IMPALA-2751: Matching quotes are not required in comments
..


Patch Set 5: Code-Review-2

Let's not merge for now. This change previously broke some builds so I'm going 
to consider it somewhat risky.


--
To view, visit http://gerrit.cloudera.org:8080/10541
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I2feae34026a7e63f3d31489f757f093a73ca5d2c
Gerrit-Change-Number: 10541
Gerrit-PatchSet: 5
Gerrit-Owner: Fredy Wijaya 
Gerrit-Reviewer: Fredy Wijaya 
Gerrit-Reviewer: Impala Public Jenkins 
Gerrit-Reviewer: Michael Brown 
Gerrit-Reviewer: Thomas Marshall 
Gerrit-Reviewer: Tim Armstrong 
Gerrit-Comment-Date: Thu, 07 Jun 2018 17:41:20 +
Gerrit-HasComments: No


[Impala-ASF-CR] IMPALA-2751: Matching quotes are not required in comments

2018-06-07 Thread Michael Brown (Code Review)
Michael Brown has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/10541 )

Change subject: IMPALA-2751: Matching quotes are not required in comments
..


Patch Set 5: Code-Review+2

(1 comment)

http://gerrit.cloudera.org:8080/#/c/10541/4/tests/shell/test_shell_interactive.py
File tests/shell/test_shell_interactive.py:

http://gerrit.cloudera.org:8080/#/c/10541/4/tests/shell/test_shell_interactive.py@531
PS4, Line 531: ]
> It's the Python 2.6 and Python 2.7 different behaviors with regards to unic
Right, I gathered it was a Python 2.6 problem, but beyond that, I didn't know. 
Thanks for clarifying.



--
To view, visit http://gerrit.cloudera.org:8080/10541
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I2feae34026a7e63f3d31489f757f093a73ca5d2c
Gerrit-Change-Number: 10541
Gerrit-PatchSet: 5
Gerrit-Owner: Fredy Wijaya 
Gerrit-Reviewer: Fredy Wijaya 
Gerrit-Reviewer: Michael Brown 
Gerrit-Reviewer: Thomas Marshall 
Gerrit-Comment-Date: Thu, 07 Jun 2018 16:27:59 +
Gerrit-HasComments: Yes


[Impala-ASF-CR] IMPALA-2751: Matching quotes are not required in comments

2018-06-07 Thread Impala Public Jenkins (Code Review)
Impala Public Jenkins has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/10541 )

Change subject: IMPALA-2751: Matching quotes are not required in comments
..


Patch Set 5:

Build started: https://jenkins.impala.io/job/gerrit-verify-dryrun/2618/


--
To view, visit http://gerrit.cloudera.org:8080/10541
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I2feae34026a7e63f3d31489f757f093a73ca5d2c
Gerrit-Change-Number: 10541
Gerrit-PatchSet: 5
Gerrit-Owner: Fredy Wijaya 
Gerrit-Reviewer: Fredy Wijaya 
Gerrit-Reviewer: Impala Public Jenkins 
Gerrit-Reviewer: Michael Brown 
Gerrit-Reviewer: Thomas Marshall 
Gerrit-Comment-Date: Thu, 07 Jun 2018 16:28:29 +
Gerrit-HasComments: No


[Impala-ASF-CR] IMPALA-2751: Matching quotes are not required in comments

2018-06-07 Thread Fredy Wijaya (Code Review)
Fredy Wijaya has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/10541 )

Change subject: IMPALA-2751: Matching quotes are not required in comments
..


Patch Set 5:

(2 comments)

http://gerrit.cloudera.org:8080/#/c/10541/4//COMMIT_MSG
Commit Message:

http://gerrit.cloudera.org:8080/#/c/10541/4//COMMIT_MSG@12
PS4, Line 12: The fix is to strip any SQL comments before sending to shlex 
since shlex
: does not understand SQL comments and will raise an exception when 
it
: sees unmatched quotes regardless whether the quotes are in the 
comments or
: not.
:
> Misaligned text. Can you clean it up?
Done


http://gerrit.cloudera.org:8080/#/c/10541/4/tests/shell/test_shell_interactive.py
File tests/shell/test_shell_interactive.py:

http://gerrit.cloudera.org:8080/#/c/10541/4/tests/shell/test_shell_interactive.py@531
PS4, Line 531: ]
> I missed the reason for the revert. Are additional test cases needed?
It's the Python 2.6 and Python 2.7 different behaviors with regards to unicode. 
I think the best way is to have GVO that runs both CentOS 6 and Ubuntu 16.04. I 
believe this isn't the first time we ran into issues with Python 2.6 vs Python 
2.7. I did run the whole shell tests on CentOS 6, though.

Let me know what you think.



--
To view, visit http://gerrit.cloudera.org:8080/10541
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I2feae34026a7e63f3d31489f757f093a73ca5d2c
Gerrit-Change-Number: 10541
Gerrit-PatchSet: 5
Gerrit-Owner: Fredy Wijaya 
Gerrit-Reviewer: Fredy Wijaya 
Gerrit-Reviewer: Michael Brown 
Gerrit-Reviewer: Thomas Marshall 
Gerrit-Comment-Date: Thu, 07 Jun 2018 16:24:12 +
Gerrit-HasComments: Yes


[Impala-ASF-CR] IMPALA-2751: Matching quotes are not required in comments

2018-06-07 Thread Fredy Wijaya (Code Review)
Fredy Wijaya has uploaded a new patch set (#5). ( 
http://gerrit.cloudera.org:8080/10541 )

Change subject: IMPALA-2751: Matching quotes are not required in comments
..

IMPALA-2751: Matching quotes are not required in comments

This patch fixes the issue where non-matching quotes inside comments
will cause the shell to not terminate.

The fix is to strip any SQL comments before sending to shlex since shlex
does not understand SQL comments and will raise an exception when it
sees unmatched quotes regardless whether the quotes are in the comments or
not.

Testing:
- Added new shell tests
- Ran all end-to-end shell tests on Python 2.6 and Python 2.7

Change-Id: I2feae34026a7e63f3d31489f757f093a73ca5d2c
---
M shell/impala_shell.py
M tests/shell/test_shell_interactive.py
2 files changed, 26 insertions(+), 6 deletions(-)


  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/41/10541/5
--
To view, visit http://gerrit.cloudera.org:8080/10541
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I2feae34026a7e63f3d31489f757f093a73ca5d2c
Gerrit-Change-Number: 10541
Gerrit-PatchSet: 5
Gerrit-Owner: Fredy Wijaya 
Gerrit-Reviewer: Fredy Wijaya 
Gerrit-Reviewer: Michael Brown 
Gerrit-Reviewer: Thomas Marshall 


[Impala-ASF-CR] IMPALA-2751: Matching quotes are not required in comments

2018-06-07 Thread Michael Brown (Code Review)
Michael Brown has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/10541 )

Change subject: IMPALA-2751: Matching quotes are not required in comments
..


Patch Set 4:

(2 comments)

http://gerrit.cloudera.org:8080/#/c/10541/4//COMMIT_MSG
Commit Message:

http://gerrit.cloudera.org:8080/#/c/10541/4//COMMIT_MSG@12
PS4, Line 12: The fix is to strip any SQL comments before sending to shlex 
since shlex
: does not understand SQL comments and will raise an exception when 
it
: sees
: unmatched quotes regardless whether the quotes are in the 
comments or
: not.
Misaligned text. Can you clean it up?


http://gerrit.cloudera.org:8080/#/c/10541/4/tests/shell/test_shell_interactive.py
File tests/shell/test_shell_interactive.py:

http://gerrit.cloudera.org:8080/#/c/10541/4/tests/shell/test_shell_interactive.py@531
PS4, Line 531: ]
I missed the reason for the revert. Are additional test cases needed?



--
To view, visit http://gerrit.cloudera.org:8080/10541
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I2feae34026a7e63f3d31489f757f093a73ca5d2c
Gerrit-Change-Number: 10541
Gerrit-PatchSet: 4
Gerrit-Owner: Fredy Wijaya 
Gerrit-Reviewer: Fredy Wijaya 
Gerrit-Reviewer: Michael Brown 
Gerrit-Reviewer: Thomas Marshall 
Gerrit-Comment-Date: Thu, 07 Jun 2018 16:14:37 +
Gerrit-HasComments: Yes


[Impala-ASF-CR] IMPALA-2751: Matching quotes are not required in comments

2018-06-06 Thread Fredy Wijaya (Code Review)
Fredy Wijaya has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/10541 )

Change subject: IMPALA-2751: Matching quotes are not required in comments
..


Patch Set 4:

Un-revert 84b55c6148dd4e756359717cca30a8eea71cb62a. I tested it on both Python 
2.6 and 2.7. Please re-review it again.


--
To view, visit http://gerrit.cloudera.org:8080/10541
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I2feae34026a7e63f3d31489f757f093a73ca5d2c
Gerrit-Change-Number: 10541
Gerrit-PatchSet: 4
Gerrit-Owner: Fredy Wijaya 
Gerrit-Reviewer: Fredy Wijaya 
Gerrit-Reviewer: Michael Brown 
Gerrit-Reviewer: Thomas Marshall 
Gerrit-Comment-Date: Thu, 07 Jun 2018 03:49:35 +
Gerrit-HasComments: No


[Impala-ASF-CR] IMPALA-2751: Matching quotes are not required in comments

2018-06-06 Thread Fredy Wijaya (Code Review)
Fredy Wijaya has uploaded a new patch set (#4). ( 
http://gerrit.cloudera.org:8080/10541 )

Change subject: IMPALA-2751: Matching quotes are not required in comments
..

IMPALA-2751: Matching quotes are not required in comments

This patch fixes the issue where non-matching quotes inside comments
will cause the shell to not terminate.

The fix is to strip any SQL comments before sending to shlex since shlex
does not understand SQL comments and will raise an exception when it
sees
unmatched quotes regardless whether the quotes are in the comments or
not.

Testing:
- Added new shell tests
- Ran all end-to-end shell tests on Python 2.6 and Python 2.7

Change-Id: I2feae34026a7e63f3d31489f757f093a73ca5d2c
---
M shell/impala_shell.py
M tests/shell/test_shell_interactive.py
2 files changed, 26 insertions(+), 6 deletions(-)


  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/41/10541/4
--
To view, visit http://gerrit.cloudera.org:8080/10541
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I2feae34026a7e63f3d31489f757f093a73ca5d2c
Gerrit-Change-Number: 10541
Gerrit-PatchSet: 4
Gerrit-Owner: Fredy Wijaya 
Gerrit-Reviewer: Fredy Wijaya 
Gerrit-Reviewer: Michael Brown 
Gerrit-Reviewer: Thomas Marshall 


[Impala-ASF-CR] IMPALA-2751: Matching quotes are not required in comments

2018-06-06 Thread Fredy Wijaya (Code Review)
Fredy Wijaya has uploaded a new patch set (#3). ( 
http://gerrit.cloudera.org:8080/10541 )

Change subject: IMPALA-2751: Matching quotes are not required in comments
..

IMPALA-2751: Matching quotes are not required in comments

This patch fixes the issue where non-matching quotes inside comments
will cause the shell to not terminate.

The fix is to strip any SQL comments before sending to shlex since shlex
does not understand SQL comments and will raise an exception when it
sees
unmatched quotes regardless whether the quotes are in the comments or
not.

Testing:
- Added new shell tests
- Ran all end-to-end shell tests on Python 2.6 and Python 2.7

Change-Id: I2feae34026a7e63f3d31489f757f093a73ca5d2c
---
M shell/impala_shell.py
M tests/shell/test_shell_interactive.py
2 files changed, 26 insertions(+), 6 deletions(-)


  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/41/10541/3
--
To view, visit http://gerrit.cloudera.org:8080/10541
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I2feae34026a7e63f3d31489f757f093a73ca5d2c
Gerrit-Change-Number: 10541
Gerrit-PatchSet: 3
Gerrit-Owner: Fredy Wijaya 
Gerrit-Reviewer: Fredy Wijaya 
Gerrit-Reviewer: Michael Brown 
Gerrit-Reviewer: Thomas Marshall 


[Impala-ASF-CR] IMPALA-2751: Matching quotes are not required in comments

2018-05-30 Thread Fredy Wijaya (Code Review)
Fredy Wijaya has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/10541 )

Change subject: IMPALA-2751: Matching quotes are not required in comments
..


Patch Set 2:

I ran all shell tests on both Python 2.6 and Python 2.7. This should also fix 
IMPALA-7089.


--
To view, visit http://gerrit.cloudera.org:8080/10541
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I2feae34026a7e63f3d31489f757f093a73ca5d2c
Gerrit-Change-Number: 10541
Gerrit-PatchSet: 2
Gerrit-Owner: Fredy Wijaya 
Gerrit-Reviewer: Fredy Wijaya 
Gerrit-Reviewer: Philip Zeyliger 
Gerrit-Reviewer: Thomas Marshall 
Gerrit-Comment-Date: Wed, 30 May 2018 18:53:51 +
Gerrit-HasComments: No


[Impala-ASF-CR] IMPALA-2751: Matching quotes are not required in comments

2018-05-30 Thread Fredy Wijaya (Code Review)
Fredy Wijaya has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/10541


Change subject: IMPALA-2751: Matching quotes are not required in comments
..

IMPALA-2751: Matching quotes are not required in comments

This patch fixes the issue where non-matching quotes inside comments
will cause the shell to not terminate.

The fix is to strip any SQL comments before sending to shlex since shlex
does not understand SQL comments and will raise an exception when it
sees
unmatched quotes regardless whether the quotes are in the comments or
not.

Testing:
- Added new shell tests
- Ran all end-to-end shell tests on Python 2.6 and Python 2.7

Change-Id: I2feae34026a7e63f3d31489f757f093a73ca5d2c
---
M shell/impala_shell.py
M tests/shell/test_shell_commandline.py
M tests/shell/test_shell_interactive.py
3 files changed, 26 insertions(+), 7 deletions(-)



  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/41/10541/2
--
To view, visit http://gerrit.cloudera.org:8080/10541
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I2feae34026a7e63f3d31489f757f093a73ca5d2c
Gerrit-Change-Number: 10541
Gerrit-PatchSet: 2
Gerrit-Owner: Fredy Wijaya