You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@impala.apache.org by "Fredy Wijaya (Code Review)" <ge...@cloudera.org> on 2018/03/07 21:16:57 UTC

[Impala-ASF-CR] IMPALA-6615: CTE query in Impala shell does not show web links

Fredy Wijaya has uploaded this change for review. ( http://gerrit.cloudera.org:8080/9537


Change subject: IMPALA-6615: CTE query in Impala shell does not show web links
......................................................................

IMPALA-6615: CTE query in Impala shell does not show web links

This patch is to show web links in Impala shell for CTE queries.

Testing:
- Ran end-to-end shell tests

Change-Id: Ie3352406e3b048be395a20405c8e6b911e663164
---
M shell/impala_shell.py
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/37/9537/1
-- 
To view, visit http://gerrit.cloudera.org:8080/9537
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie3352406e3b048be395a20405c8e6b911e663164
Gerrit-Change-Number: 9537
Gerrit-PatchSet: 1
Gerrit-Owner: Fredy Wijaya <fw...@cloudera.com>

[Impala-ASF-CR] IMPALA-6615: CTE query in Impala shell does not show query web links

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/9537 )

Change subject: IMPALA-6615: CTE query in Impala shell does not show query web links
......................................................................


Patch Set 7: Verified+1


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ie3352406e3b048be395a20405c8e6b911e663164
Gerrit-Change-Number: 9537
Gerrit-PatchSet: 7
Gerrit-Owner: Fredy Wijaya <fw...@cloudera.com>
Gerrit-Reviewer: Adam Holley <gi...@holleyism.com>
Gerrit-Reviewer: Alex Behm <al...@cloudera.com>
Gerrit-Reviewer: David Knupp <dk...@cloudera.com>
Gerrit-Reviewer: Fredy Wijaya <fw...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins
Gerrit-Comment-Date: Thu, 08 Mar 2018 11:37:08 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-6615: CTE query in Impala shell does not show query web links

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/9537 )

Change subject: IMPALA-6615: CTE query in Impala shell does not show query web links
......................................................................


Patch Set 7:

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


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ie3352406e3b048be395a20405c8e6b911e663164
Gerrit-Change-Number: 9537
Gerrit-PatchSet: 7
Gerrit-Owner: Fredy Wijaya <fw...@cloudera.com>
Gerrit-Reviewer: Adam Holley <gi...@holleyism.com>
Gerrit-Reviewer: Alex Behm <al...@cloudera.com>
Gerrit-Reviewer: David Knupp <dk...@cloudera.com>
Gerrit-Reviewer: Fredy Wijaya <fw...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins
Gerrit-Comment-Date: Thu, 08 Mar 2018 07:39:48 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-6615: CTE query in Impala shell does not show query web links

Posted by "Adam Holley (Code Review)" <ge...@cloudera.org>.
Adam Holley has posted comments on this change. ( http://gerrit.cloudera.org:8080/9537 )

Change subject: IMPALA-6615: CTE query in Impala shell does not show query web links
......................................................................


Patch Set 4: Code-Review+1


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ie3352406e3b048be395a20405c8e6b911e663164
Gerrit-Change-Number: 9537
Gerrit-PatchSet: 4
Gerrit-Owner: Fredy Wijaya <fw...@cloudera.com>
Gerrit-Reviewer: Adam Holley <gi...@holleyism.com>
Gerrit-Reviewer: Alex Behm <al...@cloudera.com>
Gerrit-Reviewer: Fredy Wijaya <fw...@cloudera.com>
Gerrit-Comment-Date: Thu, 08 Mar 2018 05:44:06 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-6615: CTE query in Impala shell does not show query web links

Posted by "David Knupp (Code Review)" <ge...@cloudera.org>.
David Knupp has posted comments on this change. ( http://gerrit.cloudera.org:8080/9537 )

Change subject: IMPALA-6615: CTE query in Impala shell does not show query web links
......................................................................


Patch Set 4:

(1 comment)

http://gerrit.cloudera.org:8080/#/c/9537/1/shell/impala_shell.py
File shell/impala_shell.py:

http://gerrit.cloudera.org:8080/#/c/9537/1/shell/impala_shell.py@1131
PS1, Line 1131:     return self._execute_stmt(query, is_dml=is_dml, print_web_link=is_dml)
> I guess my question is: why are we not passing print_web_links=True here? W
My guess is that not every query containing a WITH clause is DML, and if not, then print_web_link should be False. In other words, we either want:

  self._execute_stmt(query, True, True)

or 

  self._execute_stmt(query, False, False)

but never

  self._execute_stmt(query, False, True)



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ie3352406e3b048be395a20405c8e6b911e663164
Gerrit-Change-Number: 9537
Gerrit-PatchSet: 4
Gerrit-Owner: Fredy Wijaya <fw...@cloudera.com>
Gerrit-Reviewer: Adam Holley <gi...@holleyism.com>
Gerrit-Reviewer: Alex Behm <al...@cloudera.com>
Gerrit-Reviewer: David Knupp <dk...@cloudera.com>
Gerrit-Reviewer: Fredy Wijaya <fw...@cloudera.com>
Gerrit-Comment-Date: Thu, 08 Mar 2018 07:20:30 +0000
Gerrit-HasComments: Yes

[Impala-ASF-CR] IMPALA-6615: CTE query in Impala shell does not show web links

Posted by "Adam Holley (Code Review)" <ge...@cloudera.org>.
Adam Holley has posted comments on this change. ( http://gerrit.cloudera.org:8080/9537 )

Change subject: IMPALA-6615: CTE query in Impala shell does not show web links
......................................................................


Patch Set 1:

Can you add a test to validate?


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ie3352406e3b048be395a20405c8e6b911e663164
Gerrit-Change-Number: 9537
Gerrit-PatchSet: 1
Gerrit-Owner: Fredy Wijaya <fw...@cloudera.com>
Gerrit-Reviewer: Adam Holley <gi...@holleyism.com>
Gerrit-Comment-Date: Thu, 08 Mar 2018 04:43:57 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-6615: CTE query in Impala shell does not show query web links

Posted by "Alex Behm (Code Review)" <ge...@cloudera.org>.
Alex Behm has posted comments on this change. ( http://gerrit.cloudera.org:8080/9537 )

Change subject: IMPALA-6615: CTE query in Impala shell does not show query web links
......................................................................


Patch Set 1:

(1 comment)

http://gerrit.cloudera.org:8080/#/c/9537/1/shell/impala_shell.py
File shell/impala_shell.py:

http://gerrit.cloudera.org:8080/#/c/9537/1/shell/impala_shell.py@1131
PS1, Line 1131:     return self._execute_stmt(query, is_dml=is_dml, print_web_link=is_dml)
> The WITH clause is only allowed for query statements like SELECT and UNION 
Also we want to print weblinks for SELECT and INSERT queries alike.

For SELECT/INSERT without a WITH clause we print the weblinks today.



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ie3352406e3b048be395a20405c8e6b911e663164
Gerrit-Change-Number: 9537
Gerrit-PatchSet: 1
Gerrit-Owner: Fredy Wijaya <fw...@cloudera.com>
Gerrit-Reviewer: Adam Holley <gi...@holleyism.com>
Gerrit-Reviewer: Alex Behm <al...@cloudera.com>
Gerrit-Reviewer: David Knupp <dk...@cloudera.com>
Gerrit-Reviewer: Fredy Wijaya <fw...@cloudera.com>
Gerrit-Comment-Date: Thu, 08 Mar 2018 07:27:06 +0000
Gerrit-HasComments: Yes

[Impala-ASF-CR] IMPALA-6615: CTE query in Impala shell does not show query web links

Posted by "Fredy Wijaya (Code Review)" <ge...@cloudera.org>.
Fredy Wijaya has uploaded a new patch set (#7). ( http://gerrit.cloudera.org:8080/9537 )

Change subject: IMPALA-6615: CTE query in Impala shell does not show query web links
......................................................................

IMPALA-6615: CTE query in Impala shell does not show query web links

This patch is to show query submitted and query progress web links in
Impala shell for CTE queries.

Testing:
- Ran end-to-end shell tests

Change-Id: Ie3352406e3b048be395a20405c8e6b911e663164
---
M shell/impala_shell.py
M tests/shell/test_shell_commandline.py
2 files changed, 8 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/37/9537/7
-- 
To view, visit http://gerrit.cloudera.org:8080/9537
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: Ie3352406e3b048be395a20405c8e6b911e663164
Gerrit-Change-Number: 9537
Gerrit-PatchSet: 7
Gerrit-Owner: Fredy Wijaya <fw...@cloudera.com>
Gerrit-Reviewer: Adam Holley <gi...@holleyism.com>
Gerrit-Reviewer: Alex Behm <al...@cloudera.com>
Gerrit-Reviewer: David Knupp <dk...@cloudera.com>
Gerrit-Reviewer: Fredy Wijaya <fw...@cloudera.com>

[Impala-ASF-CR] IMPALA-6615: CTE query in Impala shell does not show query web links

Posted by "Alex Behm (Code Review)" <ge...@cloudera.org>.
Alex Behm has posted comments on this change. ( http://gerrit.cloudera.org:8080/9537 )

Change subject: IMPALA-6615: CTE query in Impala shell does not show query web links
......................................................................


Patch Set 1:

(1 comment)

http://gerrit.cloudera.org:8080/#/c/9537/1/shell/impala_shell.py
File shell/impala_shell.py:

http://gerrit.cloudera.org:8080/#/c/9537/1/shell/impala_shell.py@1131
PS1, Line 1131:     return self._execute_stmt(query, is_dml=is_dml, print_web_link=is_dml)
> My guess is that not every query containing a WITH clause is DML, and if no
The WITH clause is only allowed for query statements like SELECT and UNION or for DML like INSERT/UPDATE, but nothing else, so I think the right behavior is print_web_links=True.

See uses of opt_with_clause in sql-parser.cup



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ie3352406e3b048be395a20405c8e6b911e663164
Gerrit-Change-Number: 9537
Gerrit-PatchSet: 1
Gerrit-Owner: Fredy Wijaya <fw...@cloudera.com>
Gerrit-Reviewer: Adam Holley <gi...@holleyism.com>
Gerrit-Reviewer: Alex Behm <al...@cloudera.com>
Gerrit-Reviewer: David Knupp <dk...@cloudera.com>
Gerrit-Reviewer: Fredy Wijaya <fw...@cloudera.com>
Gerrit-Comment-Date: Thu, 08 Mar 2018 07:24:02 +0000
Gerrit-HasComments: Yes

[Impala-ASF-CR] IMPALA-6615: CTE query in Impala shell does not show query web links

Posted by "Fredy Wijaya (Code Review)" <ge...@cloudera.org>.
Fredy Wijaya has uploaded a new patch set (#4). ( http://gerrit.cloudera.org:8080/9537 )

Change subject: IMPALA-6615: CTE query in Impala shell does not show query web links
......................................................................

IMPALA-6615: CTE query in Impala shell does not show query web links

This patch is to show query submitted and query progress web links in
Impala shell for CTE queries.

Testing:
- Ran end-to-end shell tests

Change-Id: Ie3352406e3b048be395a20405c8e6b911e663164
---
M shell/impala_shell.py
M tests/shell/test_shell_commandline.py
2 files changed, 8 insertions(+), 2 deletions(-)


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: Ie3352406e3b048be395a20405c8e6b911e663164
Gerrit-Change-Number: 9537
Gerrit-PatchSet: 4
Gerrit-Owner: Fredy Wijaya <fw...@cloudera.com>
Gerrit-Reviewer: Adam Holley <gi...@holleyism.com>
Gerrit-Reviewer: Alex Behm <al...@cloudera.com>
Gerrit-Reviewer: Fredy Wijaya <fw...@cloudera.com>

[Impala-ASF-CR] IMPALA-6615: CTE query in Impala shell does not show query web links

Posted by "Alex Behm (Code Review)" <ge...@cloudera.org>.
Alex Behm has posted comments on this change. ( http://gerrit.cloudera.org:8080/9537 )

Change subject: IMPALA-6615: CTE query in Impala shell does not show query web links
......................................................................


Patch Set 7: Code-Review+2


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ie3352406e3b048be395a20405c8e6b911e663164
Gerrit-Change-Number: 9537
Gerrit-PatchSet: 7
Gerrit-Owner: Fredy Wijaya <fw...@cloudera.com>
Gerrit-Reviewer: Adam Holley <gi...@holleyism.com>
Gerrit-Reviewer: Alex Behm <al...@cloudera.com>
Gerrit-Reviewer: David Knupp <dk...@cloudera.com>
Gerrit-Reviewer: Fredy Wijaya <fw...@cloudera.com>
Gerrit-Comment-Date: Thu, 08 Mar 2018 07:39:11 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-6615: CTE query in Impala shell does not show web links

Posted by "Alex Behm (Code Review)" <ge...@cloudera.org>.
Alex Behm has posted comments on this change. ( http://gerrit.cloudera.org:8080/9537 )

Change subject: IMPALA-6615: CTE query in Impala shell does not show web links
......................................................................


Patch Set 1:

(1 comment)

http://gerrit.cloudera.org:8080/#/c/9537/1/shell/impala_shell.py
File shell/impala_shell.py:

http://gerrit.cloudera.org:8080/#/c/9537/1/shell/impala_shell.py@1131
PS1, Line 1131:     return self._execute_stmt(query, is_dml=is_dml, print_web_link=is_dml)
We should also print weblinks for DML, since that's what we do without a WITH clause.



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ie3352406e3b048be395a20405c8e6b911e663164
Gerrit-Change-Number: 9537
Gerrit-PatchSet: 1
Gerrit-Owner: Fredy Wijaya <fw...@cloudera.com>
Gerrit-Reviewer: Adam Holley <gi...@holleyism.com>
Gerrit-Reviewer: Alex Behm <al...@cloudera.com>
Gerrit-Comment-Date: Thu, 08 Mar 2018 05:14:28 +0000
Gerrit-HasComments: Yes

[Impala-ASF-CR] IMPALA-6615: CTE query in Impala shell does not show query web links

Posted by "Alex Behm (Code Review)" <ge...@cloudera.org>.
Alex Behm has posted comments on this change. ( http://gerrit.cloudera.org:8080/9537 )

Change subject: IMPALA-6615: CTE query in Impala shell does not show query web links
......................................................................


Patch Set 1:

(1 comment)

http://gerrit.cloudera.org:8080/#/c/9537/1/shell/impala_shell.py
File shell/impala_shell.py:

http://gerrit.cloudera.org:8080/#/c/9537/1/shell/impala_shell.py@1131
PS1, Line 1131:     return self._execute_stmt(query, is_dml=is_dml, print_web_link=is_dml)
> That's already been implemented: https://github.com/apache/impala/blob/mast
I guess my question is: why are we not passing print_web_links=True here? What does it have to do with is_dml



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ie3352406e3b048be395a20405c8e6b911e663164
Gerrit-Change-Number: 9537
Gerrit-PatchSet: 1
Gerrit-Owner: Fredy Wijaya <fw...@cloudera.com>
Gerrit-Reviewer: Adam Holley <gi...@holleyism.com>
Gerrit-Reviewer: Alex Behm <al...@cloudera.com>
Gerrit-Reviewer: Fredy Wijaya <fw...@cloudera.com>
Gerrit-Comment-Date: Thu, 08 Mar 2018 05:44:51 +0000
Gerrit-HasComments: Yes

[Impala-ASF-CR] IMPALA-6615: CTE query in Impala shell does not show query web links

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has submitted this change and it was merged. ( http://gerrit.cloudera.org:8080/9537 )

Change subject: IMPALA-6615: CTE query in Impala shell does not show query web links
......................................................................

IMPALA-6615: CTE query in Impala shell does not show query web links

This patch is to show query submitted and query progress web links in
Impala shell for CTE queries.

Testing:
- Ran end-to-end shell tests

Change-Id: Ie3352406e3b048be395a20405c8e6b911e663164
Reviewed-on: http://gerrit.cloudera.org:8080/9537
Reviewed-by: Alex Behm <al...@cloudera.com>
Tested-by: Impala Public Jenkins
---
M shell/impala_shell.py
M tests/shell/test_shell_commandline.py
2 files changed, 8 insertions(+), 2 deletions(-)

Approvals:
  Alex Behm: Looks good to me, approved
  Impala Public Jenkins: Verified

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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: Ie3352406e3b048be395a20405c8e6b911e663164
Gerrit-Change-Number: 9537
Gerrit-PatchSet: 8
Gerrit-Owner: Fredy Wijaya <fw...@cloudera.com>
Gerrit-Reviewer: Adam Holley <gi...@holleyism.com>
Gerrit-Reviewer: Alex Behm <al...@cloudera.com>
Gerrit-Reviewer: David Knupp <dk...@cloudera.com>
Gerrit-Reviewer: Fredy Wijaya <fw...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins