[Impala-ASF-CR] IMPALA-12390 (part 1): Enable some clang-tidy performance related checks

2023-08-25 Thread Impala Public Jenkins (Code Review)
Impala Public Jenkins has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/20387 )

Change subject: IMPALA-12390 (part 1): Enable some clang-tidy performance 
related checks
..


Patch Set 2: Verified-1

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


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I3d5dfe04ffb4ec6f156e268c31a356651410ce91
Gerrit-Change-Number: 20387
Gerrit-PatchSet: 2
Gerrit-Owner: Joe McDonnell 
Gerrit-Reviewer: Impala Public Jenkins 
Gerrit-Comment-Date: Sat, 26 Aug 2023 04:16:12 +
Gerrit-HasComments: No


[Impala-ASF-CR] IMPALA-12357: Skip scheduling bloom filter from full-build scan

2023-08-25 Thread Aman Sinha (Code Review)
Aman Sinha has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/20366 )

Change subject: IMPALA-12357: Skip scheduling bloom filter from full-build scan
..


Patch Set 4:

(4 comments)

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

http://gerrit.cloudera.org:8080/#/c/20366/4//COMMIT_MSG@22
PS4, Line 22: e any predicate filter
> You mean planner add null checking predicate on join key column? I don't th
Right, currently Impala does not add the IS NOT NULL predicate for the join 
columns.  Hive does add this for inner joins (for outer joins it won't be 
applicable).


http://gerrit.cloudera.org:8080/#/c/20366/4//COMMIT_MSG@29
PS4, Line 29: thus reducing the bloom filter aggregation
: overhead in coordinator
This applies to the remote bloom filters right ? For local filters that are not 
sent to the coordinator, this patch could still potentially help for the high 
fpp case.


http://gerrit.cloudera.org:8080/#/c/20366/4/fe/src/main/java/org/apache/impala/planner/RuntimeFilterGenerator.java
File fe/src/main/java/org/apache/impala/planner/RuntimeFilterGenerator.java:

http://gerrit.cloudera.org:8080/#/c/20366/4/fe/src/main/java/org/apache/impala/planner/RuntimeFilterGenerator.java@252
PS4, Line 252: private int rank_ = 1;
Is 'rank' the right term here ?  Normally, rank implies some type of comparison 
function.  Perhaps 'level' is more appropriate to indicate level in a subtree.


http://gerrit.cloudera.org:8080/#/c/20366/4/fe/src/main/java/org/apache/impala/planner/RuntimeFilterGenerator.java@844
PS4, Line 844: Math.max(0.9
For testing purposes or for a backdoor in a real deployment, would it be useful 
to tune this ?  Maybe in some cases we might want higher threshold or if there 
is a bug in the fpp estimation for any reason.  I could also be convinced to 
not add yet another tuning option - so open to a counter argument.



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I494533bc06da84e606cbd1ae161908089a5e
Gerrit-Change-Number: 20366
Gerrit-PatchSet: 4
Gerrit-Owner: Riza Suminto 
Gerrit-Reviewer: Aman Sinha 
Gerrit-Reviewer: Csaba Ringhofer 
Gerrit-Reviewer: Impala Public Jenkins 
Gerrit-Reviewer: Riza Suminto 
Gerrit-Comment-Date: Sat, 26 Aug 2023 00:10:50 +
Gerrit-HasComments: Yes


[Impala-ASF-CR] IMPALA-12390 (part 1): Enable some clang-tidy performance related checks

2023-08-25 Thread Impala Public Jenkins (Code Review)
Impala Public Jenkins has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/20387 )

Change subject: IMPALA-12390 (part 1): Enable some clang-tidy performance 
related checks
..


Patch Set 2:

Build started: https://jenkins.impala.io/job/gerrit-verify-dryrun/9637/ 
DRY_RUN=true


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I3d5dfe04ffb4ec6f156e268c31a356651410ce91
Gerrit-Change-Number: 20387
Gerrit-PatchSet: 2
Gerrit-Owner: Joe McDonnell 
Gerrit-Reviewer: Impala Public Jenkins 
Gerrit-Comment-Date: Sat, 26 Aug 2023 00:02:18 +
Gerrit-HasComments: No


[Impala-ASF-CR] IMPALA-10086: Implicit cast comparing char and varchar

2023-08-25 Thread Impala Public Jenkins (Code Review)
Impala Public Jenkins has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/20425 )

Change subject: IMPALA-10086: Implicit cast comparing char and varchar
..


Patch Set 1:

Build Successful

https://jenkins.impala.io/job/gerrit-code-review-checks/13850/ : Initial code 
review checks passed. Use gerrit-verify-dryrun-external or gerrit-verify-dryrun 
to run full precommit tests.


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ib89d0a391bc8f2152ecd9151c8872a01ba19c436
Gerrit-Change-Number: 20425
Gerrit-PatchSet: 1
Gerrit-Owner: Michael Smith 
Gerrit-Reviewer: Daniel Becker 
Gerrit-Reviewer: Impala Public Jenkins 
Gerrit-Reviewer: Joe McDonnell 
Gerrit-Reviewer: Michael Smith 
Gerrit-Reviewer: Quanlong Huang 
Gerrit-Comment-Date: Fri, 25 Aug 2023 23:18:44 +
Gerrit-HasComments: No


[Impala-ASF-CR] IMPALA-10086: Implicit cast comparing char and varchar

2023-08-25 Thread Michael Smith (Code Review)
Michael Smith has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/20425 )

Change subject: IMPALA-10086: Implicit cast comparing char and varchar
..


Patch Set 1:

> Patch Set 1:
>
> I'll run a perf-AB-test, as this may have performance implications.

https://jenkins.impala.io/job/perf-AB-test/473/


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ib89d0a391bc8f2152ecd9151c8872a01ba19c436
Gerrit-Change-Number: 20425
Gerrit-PatchSet: 1
Gerrit-Owner: Michael Smith 
Gerrit-Reviewer: Daniel Becker 
Gerrit-Reviewer: Impala Public Jenkins 
Gerrit-Reviewer: Joe McDonnell 
Gerrit-Reviewer: Michael Smith 
Gerrit-Reviewer: Quanlong Huang 
Gerrit-Comment-Date: Fri, 25 Aug 2023 23:10:03 +
Gerrit-HasComments: No


[Impala-ASF-CR] IMPALA-10086: Implicit cast comparing char and varchar

2023-08-25 Thread Michael Smith (Code Review)
Michael Smith has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/20425 )

Change subject: IMPALA-10086: Implicit cast comparing char and varchar
..


Patch Set 1:

(1 comment)

http://gerrit.cloudera.org:8080/#/c/20425/1/tests/query_test/test_cast_with_format.py
File tests/query_test/test_cast_with_format.py:

http://gerrit.cloudera.org:8080/#/c/20425/1/tests/query_test/test_cast_with_format.py@2197
PS1, Line 2197: assert ['test  \ttest', 'tester\ttester'] == 
self.execute_query(
This test suite matches the behavior we used to have with Impala 3.2 (as seen 
is CDH 6.3).



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ib89d0a391bc8f2152ecd9151c8872a01ba19c436
Gerrit-Change-Number: 20425
Gerrit-PatchSet: 1
Gerrit-Owner: Michael Smith 
Gerrit-Reviewer: Daniel Becker 
Gerrit-Reviewer: Impala Public Jenkins 
Gerrit-Reviewer: Joe McDonnell 
Gerrit-Reviewer: Michael Smith 
Gerrit-Reviewer: Quanlong Huang 
Gerrit-Comment-Date: Fri, 25 Aug 2023 23:00:13 +
Gerrit-HasComments: Yes


[Impala-ASF-CR] IMPALA-10086: SqlCastException when comparing char with varchar

2023-08-25 Thread Impala Public Jenkins (Code Review)
Impala Public Jenkins has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/18001 )

Change subject: IMPALA-10086: SqlCastException when comparing char with varchar
..


Patch Set 4:

Build Successful

https://jenkins.impala.io/job/gerrit-code-review-checks/13849/ : Initial code 
review checks passed. Use gerrit-verify-dryrun-external or gerrit-verify-dryrun 
to run full precommit tests.


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I3cd331ae1b6afb778a88080efd38900694539a89
Gerrit-Change-Number: 18001
Gerrit-PatchSet: 4
Gerrit-Owner: Bruno Pusztahazi 
Gerrit-Reviewer: Daniel Becker 
Gerrit-Reviewer: Impala Public Jenkins 
Gerrit-Reviewer: Michael Smith 
Gerrit-Reviewer: Quanlong Huang 
Gerrit-Comment-Date: Fri, 25 Aug 2023 23:00:19 +
Gerrit-HasComments: No


[Impala-ASF-CR] IMPALA-10086: Implicit cast comparing char and varchar

2023-08-25 Thread Michael Smith (Code Review)
Michael Smith has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/20425 )

Change subject: IMPALA-10086: Implicit cast comparing char and varchar
..


Patch Set 1:

I'll run a perf-AB-test, as this may have performance implications.


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ib89d0a391bc8f2152ecd9151c8872a01ba19c436
Gerrit-Change-Number: 20425
Gerrit-PatchSet: 1
Gerrit-Owner: Michael Smith 
Gerrit-Reviewer: Daniel Becker 
Gerrit-Reviewer: Impala Public Jenkins 
Gerrit-Reviewer: Joe McDonnell 
Gerrit-Reviewer: Michael Smith 
Gerrit-Reviewer: Quanlong Huang 
Gerrit-Comment-Date: Fri, 25 Aug 2023 22:55:53 +
Gerrit-HasComments: No


[Impala-ASF-CR] IMPALA-10086: SqlCastException when comparing char with varchar

2023-08-25 Thread Michael Smith (Code Review)
Michael Smith has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/18001 )

Change subject: IMPALA-10086: SqlCastException when comparing char with varchar
..


Patch Set 4: Code-Review-1


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I3cd331ae1b6afb778a88080efd38900694539a89
Gerrit-Change-Number: 18001
Gerrit-PatchSet: 4
Gerrit-Owner: Bruno Pusztahazi 
Gerrit-Reviewer: Daniel Becker 
Gerrit-Reviewer: Impala Public Jenkins 
Gerrit-Reviewer: Michael Smith 
Gerrit-Reviewer: Quanlong Huang 
Gerrit-Comment-Date: Fri, 25 Aug 2023 22:55:09 +
Gerrit-HasComments: No


[Impala-ASF-CR] IMPALA-10086: SqlCastException when comparing char with varchar

2023-08-25 Thread Michael Smith (Code Review)
Michael Smith has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/18001 )

Change subject: IMPALA-10086: SqlCastException when comparing char with varchar
..


Patch Set 4:

I don't think this approach is safe. I've proposed something different in 
https://gerrit.cloudera.org/c/20425/.


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I3cd331ae1b6afb778a88080efd38900694539a89
Gerrit-Change-Number: 18001
Gerrit-PatchSet: 4
Gerrit-Owner: Bruno Pusztahazi 
Gerrit-Reviewer: Daniel Becker 
Gerrit-Reviewer: Impala Public Jenkins 
Gerrit-Reviewer: Michael Smith 
Gerrit-Reviewer: Quanlong Huang 
Gerrit-Comment-Date: Fri, 25 Aug 2023 22:51:40 +
Gerrit-HasComments: No


[Impala-ASF-CR] IMPALA-10086: SqlCastException when comparing char with varchar

2023-08-25 Thread Michael Smith (Code Review)
Michael Smith has removed Joe McDonnell from this change.  ( 
http://gerrit.cloudera.org:8080/18001 )

Change subject: IMPALA-10086: SqlCastException when comparing char with varchar
..


Removed reviewer Joe McDonnell.
--
To view, visit http://gerrit.cloudera.org:8080/18001
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: deleteReviewer
Gerrit-Change-Id: I3cd331ae1b6afb778a88080efd38900694539a89
Gerrit-Change-Number: 18001
Gerrit-PatchSet: 4
Gerrit-Owner: Bruno Pusztahazi 
Gerrit-Reviewer: Daniel Becker 
Gerrit-Reviewer: Impala Public Jenkins 
Gerrit-Reviewer: Michael Smith 
Gerrit-Reviewer: Quanlong Huang 


[Impala-ASF-CR] IMPALA-10086: SqlCastException when comparing char with varchar

2023-08-25 Thread Impala Public Jenkins (Code Review)
Impala Public Jenkins has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/18001 )

Change subject: IMPALA-10086: SqlCastException when comparing char with varchar
..


Patch Set 3:

Build Successful

https://jenkins.impala.io/job/gerrit-code-review-checks/13848/ : Initial code 
review checks passed. Use gerrit-verify-dryrun-external or gerrit-verify-dryrun 
to run full precommit tests.


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I3cd331ae1b6afb778a88080efd38900694539a89
Gerrit-Change-Number: 18001
Gerrit-PatchSet: 3
Gerrit-Owner: Bruno Pusztahazi 
Gerrit-Reviewer: Daniel Becker 
Gerrit-Reviewer: Impala Public Jenkins 
Gerrit-Reviewer: Michael Smith 
Gerrit-Reviewer: Quanlong Huang 
Gerrit-Comment-Date: Fri, 25 Aug 2023 22:53:51 +
Gerrit-HasComments: No


[Impala-ASF-CR] IMPALA-10086: SqlCastException when comparing char with varchar

2023-08-25 Thread Michael Smith (Code Review)
Michael Smith has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/18001 )

Change subject: IMPALA-10086: SqlCastException when comparing char with varchar
..


Patch Set 4:

(2 comments)

http://gerrit.cloudera.org:8080/#/c/18001/3/tests/query_test/test_cast_with_format.py
File tests/query_test/test_cast_with_format.py:

http://gerrit.cloudera.org:8080/#/c/18001/3/tests/query_test/test_cast_with_format.py@2192
PS3, Line 2192:
> flake8: E502 the backslash is redundant between brackets
Done


http://gerrit.cloudera.org:8080/#/c/18001/3/tests/query_test/test_cast_with_format.py@2193
PS3, Line 2193:
> flake8: E502 the backslash is redundant between brackets
Done



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I3cd331ae1b6afb778a88080efd38900694539a89
Gerrit-Change-Number: 18001
Gerrit-PatchSet: 4
Gerrit-Owner: Bruno Pusztahazi 
Gerrit-Reviewer: Daniel Becker 
Gerrit-Reviewer: Impala Public Jenkins 
Gerrit-Reviewer: Michael Smith 
Gerrit-Reviewer: Quanlong Huang 
Gerrit-Comment-Date: Fri, 25 Aug 2023 22:30:34 +
Gerrit-HasComments: Yes


[Impala-ASF-CR] IMPALA-10086: SqlCastException when comparing char with varchar

2023-08-25 Thread Michael Smith (Code Review)
Michael Smith has uploaded a new patch set (#4) to the change originally 
created by Bruno Pusztahazi. ( http://gerrit.cloudera.org:8080/18001 )

Change subject: IMPALA-10086: SqlCastException when comparing char with varchar
..

IMPALA-10086: SqlCastException when comparing char with varchar

No longer crashes. However not all cases return values despite having
the same padding. For example

  select * from test_varchar_casts where c = v

does not produce any matches while

  select * from test_varchar_casts where c = cast(v as char(6))

does.

Change-Id: I3cd331ae1b6afb778a88080efd38900694539a89
---
M fe/src/main/java/org/apache/impala/analysis/Expr.java
M fe/src/test/java/org/apache/impala/analysis/AnalyzeExprsTest.java
M tests/query_test/test_cast_with_format.py
3 files changed, 65 insertions(+), 8 deletions(-)


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I3cd331ae1b6afb778a88080efd38900694539a89
Gerrit-Change-Number: 18001
Gerrit-PatchSet: 4
Gerrit-Owner: Bruno Pusztahazi 
Gerrit-Reviewer: Daniel Becker 
Gerrit-Reviewer: Impala Public Jenkins 
Gerrit-Reviewer: Michael Smith 
Gerrit-Reviewer: Quanlong Huang 


[Impala-ASF-CR] IMPALA-10086: SqlCastException when comparing char with varchar

2023-08-25 Thread Michael Smith (Code Review)
Michael Smith has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/18001 )

Change subject: IMPALA-10086: SqlCastException when comparing char with varchar
..


Patch Set 3:

(2 comments)

http://gerrit.cloudera.org:8080/#/c/18001/2/fe/src/main/java/org/apache/impala/analysis/Expr.java
File fe/src/main/java/org/apache/impala/analysis/Expr.java:

http://gerrit.cloudera.org:8080/#/c/18001/2/fe/src/main/java/org/apache/impala/analysis/Expr.java@1565
PS2, Line 1565:*  compatibility level that defines the relation 
between 'targetType' and the
> Changing this function doesn't seem to be sufficient. The following test ca
This no longer crashes, but still doesn't give the results I'd expect.


http://gerrit.cloudera.org:8080/#/c/18001/2/fe/src/main/java/org/apache/impala/analysis/Expr.java@1574
PS2, Line 1574:   throws AnalysisException {
> I can try to make this cleaner, and add some more test cases.
Done



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I3cd331ae1b6afb778a88080efd38900694539a89
Gerrit-Change-Number: 18001
Gerrit-PatchSet: 3
Gerrit-Owner: Bruno Pusztahazi 
Gerrit-Reviewer: Daniel Becker 
Gerrit-Reviewer: Impala Public Jenkins 
Gerrit-Reviewer: Michael Smith 
Gerrit-Comment-Date: Fri, 25 Aug 2023 22:28:34 +
Gerrit-HasComments: Yes


[Impala-ASF-CR] IMPALA-10086: SqlCastException when comparing char with varchar

2023-08-25 Thread Michael Smith (Code Review)
Michael Smith has uploaded a new patch set (#3) to the change originally 
created by Bruno Pusztahazi. ( http://gerrit.cloudera.org:8080/18001 )

Change subject: IMPALA-10086: SqlCastException when comparing char with varchar
..

IMPALA-10086: SqlCastException when comparing char with varchar

No longer crashes. However not all cases return values despite having
the same padding. For example

  select * from test_varchar_casts where c = v

does not produce any matches while

  select * from test_varchar_casts where c = cast(v as char(6))

does.

Change-Id: I3cd331ae1b6afb778a88080efd38900694539a89
---
M fe/src/main/java/org/apache/impala/analysis/Expr.java
M fe/src/test/java/org/apache/impala/analysis/AnalyzeExprsTest.java
M tests/query_test/test_cast_with_format.py
3 files changed, 65 insertions(+), 8 deletions(-)


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I3cd331ae1b6afb778a88080efd38900694539a89
Gerrit-Change-Number: 18001
Gerrit-PatchSet: 3
Gerrit-Owner: Bruno Pusztahazi 
Gerrit-Reviewer: Daniel Becker 
Gerrit-Reviewer: Impala Public Jenkins 
Gerrit-Reviewer: Michael Smith 


[Impala-ASF-CR] IMPALA-10086: SqlCastException when comparing char with varchar

2023-08-25 Thread Impala Public Jenkins (Code Review)
Impala Public Jenkins has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/18001 )

Change subject: IMPALA-10086: SqlCastException when comparing char with varchar
..


Patch Set 3:

(2 comments)

http://gerrit.cloudera.org:8080/#/c/18001/3/tests/query_test/test_cast_with_format.py
File tests/query_test/test_cast_with_format.py:

http://gerrit.cloudera.org:8080/#/c/18001/3/tests/query_test/test_cast_with_format.py@2192
PS3, Line 2192: \
flake8: E502 the backslash is redundant between brackets


http://gerrit.cloudera.org:8080/#/c/18001/3/tests/query_test/test_cast_with_format.py@2193
PS3, Line 2193: \
flake8: E502 the backslash is redundant between brackets



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I3cd331ae1b6afb778a88080efd38900694539a89
Gerrit-Change-Number: 18001
Gerrit-PatchSet: 3
Gerrit-Owner: Bruno Pusztahazi 
Gerrit-Reviewer: Daniel Becker 
Gerrit-Reviewer: Impala Public Jenkins 
Gerrit-Reviewer: Michael Smith 
Gerrit-Comment-Date: Fri, 25 Aug 2023 22:28:57 +
Gerrit-HasComments: Yes


[Impala-ASF-CR] IMPALA-12076: Use ZSTD interfaces with reusable context

2023-08-25 Thread Impala Public Jenkins (Code Review)
Impala Public Jenkins has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/19773 )

Change subject: IMPALA-12076: Use ZSTD interfaces with reusable context
..


Patch Set 4: Verified+1


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I5010a56bf8202ccb3f1710425002f81587fd412b
Gerrit-Change-Number: 19773
Gerrit-PatchSet: 4
Gerrit-Owner: Joe McDonnell 
Gerrit-Reviewer: Impala Public Jenkins 
Gerrit-Reviewer: Joe McDonnell 
Gerrit-Reviewer: Michael Smith 
Gerrit-Comment-Date: Fri, 25 Aug 2023 22:08:27 +
Gerrit-HasComments: No


[Impala-ASF-CR] IMPALA-10086: SqlCastException when comparing char with varchar

2023-08-25 Thread Michael Smith (Code Review)
Michael Smith has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/18001 )

Change subject: IMPALA-10086: SqlCastException when comparing char with varchar
..


Patch Set 2:

(1 comment)

http://gerrit.cloudera.org:8080/#/c/18001/2/fe/src/main/java/org/apache/impala/analysis/Expr.java
File fe/src/main/java/org/apache/impala/analysis/Expr.java:

http://gerrit.cloudera.org:8080/#/c/18001/2/fe/src/main/java/org/apache/impala/analysis/Expr.java@1565
PS2, Line 1565:   public final Expr castTo(Type targetType, TypeCompatibility 
compatibility)
Changing this function doesn't seem to be sufficient. The following test causes 
a DCHECK fail and later a crash in LLVM trying to instantiate a string of 
length -1

  select * from functional.chars_tiny where vc = cast('c' as char(1));

That case seems to be indistinguishable from others like

  select * from functional.chars_tiny where vc = cs;
  select * from functional.chars_tiny where cs = vc;

at this point. Without any changes, they all report

> SqlCastException: targetType=VARCHAR(*) type=VARCHAR(6)

I can't produce any cases where CHAR and VARCHAR return a match, which seems 
like it might be related.



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I3cd331ae1b6afb778a88080efd38900694539a89
Gerrit-Change-Number: 18001
Gerrit-PatchSet: 2
Gerrit-Owner: Bruno Pusztahazi 
Gerrit-Reviewer: Daniel Becker 
Gerrit-Reviewer: Impala Public Jenkins 
Gerrit-Reviewer: Michael Smith 
Gerrit-Comment-Date: Fri, 25 Aug 2023 20:59:21 +
Gerrit-HasComments: Yes


[Impala-ASF-CR] IMPALA-12387: PartialUpdates is misleading for LOCAL filter

2023-08-25 Thread Impala Public Jenkins (Code Review)
Impala Public Jenkins has submitted this change and it was merged. ( 
http://gerrit.cloudera.org:8080/20397 )

Change subject: IMPALA-12387: PartialUpdates is misleading for LOCAL filter
..

IMPALA-12387: PartialUpdates is misleading for LOCAL filter

In filter table, PartialUpdates is intended to mark if coordinator
receive only partial update from contributing fragments. This can be
misleading for LOCAL filter in column "Min value", "Max value", and
"In-list size", because LOCAL filter does not aggregate in coordinator
anymore. Thus, coordinator does not receive any filter update.

This patch mark such column value as "LOCAL" if no global aggregation is
expected in coordinator.

Testing:
- Pass core tests.

Change-Id: I56078a458799671246ff90b831e5ecebd04a78e8
Reviewed-on: http://gerrit.cloudera.org:8080/20397
Reviewed-by: Impala Public Jenkins 
Tested-by: Impala Public Jenkins 
---
M be/src/runtime/coordinator.cc
M testdata/workloads/functional-query/queries/QueryTest/in_list_filters.test
2 files changed, 12 insertions(+), 6 deletions(-)

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

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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I56078a458799671246ff90b831e5ecebd04a78e8
Gerrit-Change-Number: 20397
Gerrit-PatchSet: 3
Gerrit-Owner: Riza Suminto 
Gerrit-Reviewer: Impala Public Jenkins 
Gerrit-Reviewer: Quanlong Huang 
Gerrit-Reviewer: Riza Suminto 
Gerrit-Reviewer: Wenzhe Zhou 


[Impala-ASF-CR] IMPALA-12387: PartialUpdates is misleading for LOCAL filter

2023-08-25 Thread Impala Public Jenkins (Code Review)
Impala Public Jenkins has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/20397 )

Change subject: IMPALA-12387: PartialUpdates is misleading for LOCAL filter
..


Patch Set 2: Verified+1


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I56078a458799671246ff90b831e5ecebd04a78e8
Gerrit-Change-Number: 20397
Gerrit-PatchSet: 2
Gerrit-Owner: Riza Suminto 
Gerrit-Reviewer: Impala Public Jenkins 
Gerrit-Reviewer: Quanlong Huang 
Gerrit-Reviewer: Riza Suminto 
Gerrit-Reviewer: Wenzhe Zhou 
Gerrit-Comment-Date: Fri, 25 Aug 2023 20:15:43 +
Gerrit-HasComments: No


[Impala-ASF-CR] IMPALA-5081: Add codegen opt level query option

2023-08-25 Thread Impala Public Jenkins (Code Review)
Impala Public Jenkins has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/20399 )

Change subject: IMPALA-5081: Add codegen_opt_level query option
..


Patch Set 6:

Build Successful

https://jenkins.impala.io/job/gerrit-code-review-checks/13847/ : Initial code 
review checks passed. Use gerrit-verify-dryrun-external or gerrit-verify-dryrun 
to run full precommit tests.


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I371f8758b6552263e91a1fbfd9a6e1c28e1fa2bd
Gerrit-Change-Number: 20399
Gerrit-PatchSet: 6
Gerrit-Owner: Michael Smith 
Gerrit-Reviewer: Daniel Becker 
Gerrit-Reviewer: Impala Public Jenkins 
Gerrit-Reviewer: Michael Smith 
Gerrit-Reviewer: Noemi Pap-Takacs 
Gerrit-Reviewer: Yida Wu 
Gerrit-Comment-Date: Fri, 25 Aug 2023 18:03:34 +
Gerrit-HasComments: No


[Impala-ASF-CR] IMPALA-12076: Use ZSTD interfaces with reusable context

2023-08-25 Thread Impala Public Jenkins (Code Review)
Impala Public Jenkins has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/19773 )

Change subject: IMPALA-12076: Use ZSTD interfaces with reusable context
..


Patch Set 4:

Build started: https://jenkins.impala.io/job/gerrit-verify-dryrun/9636/ 
DRY_RUN=true


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I5010a56bf8202ccb3f1710425002f81587fd412b
Gerrit-Change-Number: 19773
Gerrit-PatchSet: 4
Gerrit-Owner: Joe McDonnell 
Gerrit-Reviewer: Impala Public Jenkins 
Gerrit-Reviewer: Joe McDonnell 
Gerrit-Reviewer: Michael Smith 
Gerrit-Comment-Date: Fri, 25 Aug 2023 17:52:55 +
Gerrit-HasComments: No


[Impala-ASF-CR] IMPALA-12152: Add query option to wait for events sync up

2023-08-25 Thread Michael Smith (Code Review)
Michael Smith has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/20131 )

Change subject: IMPALA-12152: Add query option to wait for events sync up
..


Patch Set 12: Code-Review+1


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I36ac941bb2c2217b09fcfa2eb567b011b38efa2a
Gerrit-Change-Number: 20131
Gerrit-PatchSet: 12
Gerrit-Owner: Quanlong Huang 
Gerrit-Reviewer: Impala Public Jenkins 
Gerrit-Reviewer: Michael Smith 
Gerrit-Reviewer: Quanlong Huang 
Gerrit-Reviewer: Sai Hemanth Gantasala 
Gerrit-Comment-Date: Fri, 25 Aug 2023 17:53:09 +
Gerrit-HasComments: No


[Impala-ASF-CR] IMPALA-12076: Use ZSTD interfaces with reusable context

2023-08-25 Thread Michael Smith (Code Review)
Michael Smith has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/19773 )

Change subject: IMPALA-12076: Use ZSTD interfaces with reusable context
..


Patch Set 4: Code-Review+1


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I5010a56bf8202ccb3f1710425002f81587fd412b
Gerrit-Change-Number: 19773
Gerrit-PatchSet: 4
Gerrit-Owner: Joe McDonnell 
Gerrit-Reviewer: Impala Public Jenkins 
Gerrit-Reviewer: Joe McDonnell 
Gerrit-Reviewer: Michael Smith 
Gerrit-Comment-Date: Fri, 25 Aug 2023 17:52:41 +
Gerrit-HasComments: No


[Impala-ASF-CR] IMPALA-10086: SqlCastException when comparing char with varchar

2023-08-25 Thread Michael Smith (Code Review)
Michael Smith has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/18001 )

Change subject: IMPALA-10086: SqlCastException when comparing char with varchar
..


Patch Set 2:

(1 comment)

http://gerrit.cloudera.org:8080/#/c/18001/2/fe/src/main/java/org/apache/impala/analysis/Expr.java
File fe/src/main/java/org/apache/impala/analysis/Expr.java:

http://gerrit.cloudera.org:8080/#/c/18001/2/fe/src/main/java/org/apache/impala/analysis/Expr.java@1574
PS2, Line 1574:   if (!(((targetType.isWildcardVarchar() || 
targetType.isWildcardChar()) && type.isVarchar()) ||
> This condition has lots of parentheses, it is difficult to read. We could e
I can try to make this cleaner, and add some more test cases.



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I3cd331ae1b6afb778a88080efd38900694539a89
Gerrit-Change-Number: 18001
Gerrit-PatchSet: 2
Gerrit-Owner: Bruno Pusztahazi 
Gerrit-Reviewer: Daniel Becker 
Gerrit-Reviewer: Impala Public Jenkins 
Gerrit-Reviewer: Michael Smith 
Gerrit-Comment-Date: Fri, 25 Aug 2023 17:55:14 +
Gerrit-HasComments: Yes


[Impala-ASF-CR] IMPALA-5081: Add codegen opt level query option

2023-08-25 Thread Michael Smith (Code Review)
Hello Daniel Becker, Yida Wu, Noemi Pap-Takacs, Impala Public Jenkins,

I'd like you to reexamine a change. Please visit

http://gerrit.cloudera.org:8080/20399

to look at the new patch set (#6).

Change subject: IMPALA-5081: Add codegen_opt_level query option
..

IMPALA-5081: Add codegen_opt_level query option

Adds the 'codegen_opt_level' query option to select LLVM optimization
level for generated code. Retains the prior behavior - O2 - as default.

If optimization level is changed for an entry already in cache, the
cache entry will be used unless the new optimization level is higher
than the cached level.

Adds unit tests that levels besides O0 inline and optimize a test
function.

Change-Id: I371f8758b6552263e91a1fbfd9a6e1c28e1fa2bd
---
M be/src/codegen/CMakeLists.txt
M be/src/codegen/llvm-codegen-cache-test.cc
M be/src/codegen/llvm-codegen-cache.cc
M be/src/codegen/llvm-codegen-cache.h
M be/src/codegen/llvm-codegen-test.cc
M be/src/codegen/llvm-codegen.cc
M be/src/codegen/llvm-codegen.h
M be/src/service/query-options.cc
M be/src/service/query-options.h
M common/thrift/ImpalaService.thrift
M common/thrift/Query.thrift
A testdata/llvm/test-opt.cc
12 files changed, 304 insertions(+), 38 deletions(-)


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I371f8758b6552263e91a1fbfd9a6e1c28e1fa2bd
Gerrit-Change-Number: 20399
Gerrit-PatchSet: 6
Gerrit-Owner: Michael Smith 
Gerrit-Reviewer: Daniel Becker 
Gerrit-Reviewer: Impala Public Jenkins 
Gerrit-Reviewer: Michael Smith 
Gerrit-Reviewer: Noemi Pap-Takacs 
Gerrit-Reviewer: Yida Wu 


[Impala-ASF-CR] IMPALA-5081: Add codegen opt level query option

2023-08-25 Thread Impala Public Jenkins (Code Review)
Impala Public Jenkins has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/20399 )

Change subject: IMPALA-5081: Add codegen_opt_level query option
..


Patch Set 5:

Build Failed

https://jenkins.impala.io/job/gerrit-code-review-checks/13846/ : Initial code 
review checks failed. See linked job for details on the failure.


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I371f8758b6552263e91a1fbfd9a6e1c28e1fa2bd
Gerrit-Change-Number: 20399
Gerrit-PatchSet: 5
Gerrit-Owner: Michael Smith 
Gerrit-Reviewer: Daniel Becker 
Gerrit-Reviewer: Impala Public Jenkins 
Gerrit-Reviewer: Michael Smith 
Gerrit-Reviewer: Noemi Pap-Takacs 
Gerrit-Reviewer: Yida Wu 
Gerrit-Comment-Date: Fri, 25 Aug 2023 17:31:55 +
Gerrit-HasComments: No


[Impala-ASF-CR] IMPALA-5081: Add codegen opt level query option

2023-08-25 Thread Impala Public Jenkins (Code Review)
Impala Public Jenkins has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/20399 )

Change subject: IMPALA-5081: Add codegen_opt_level query option
..


Patch Set 4:

Build Failed

https://jenkins.impala.io/job/gerrit-code-review-checks/13845/ : Initial code 
review checks failed. See linked job for details on the failure.


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I371f8758b6552263e91a1fbfd9a6e1c28e1fa2bd
Gerrit-Change-Number: 20399
Gerrit-PatchSet: 4
Gerrit-Owner: Michael Smith 
Gerrit-Reviewer: Daniel Becker 
Gerrit-Reviewer: Impala Public Jenkins 
Gerrit-Reviewer: Michael Smith 
Gerrit-Reviewer: Noemi Pap-Takacs 
Gerrit-Reviewer: Yida Wu 
Gerrit-Comment-Date: Fri, 25 Aug 2023 17:21:57 +
Gerrit-HasComments: No


[Impala-ASF-CR] IMPALA-5081: Add codegen opt level query option

2023-08-25 Thread Michael Smith (Code Review)
Michael Smith has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/20399 )

Change subject: IMPALA-5081: Add codegen_opt_level query option
..


Patch Set 5:

(5 comments)

http://gerrit.cloudera.org:8080/#/c/20399/3/be/src/codegen/llvm-codegen-test.cc
File be/src/codegen/llvm-codegen-test.cc:

http://gerrit.cloudera.org:8080/#/c/20399/3/be/src/codegen/llvm-codegen-test.cc@679
PS3, Line 679:
> Nit: use.
Done


http://gerrit.cloudera.org:8080/#/c/20399/3/be/src/codegen/llvm-codegen-test.cc@694
PS3, Line 694: n
> Instead of hard-coding this value, we could extract the opt levels on L673
Done


http://gerrit.cloudera.org:8080/#/c/20399/3/be/src/codegen/llvm-codegen.cc
File be/src/codegen/llvm-codegen.cc:

http://gerrit.cloudera.org:8080/#/c/20399/3/be/src/codegen/llvm-codegen.cc@129
PS3, Line 129: "The IR optimization level for pre-generated code; supports 
O1, O2, and Os.");
> Is O0 removed because it prevents further optimisation?
It was an accidental change I reverted, this option is unrelated to the patch. 
I guess I decided to omit O0 when creating this, just like O3 didn't seem to 
help.

Also Clang O0 is weird and inserts lots of noinline comments, so similar to 
https://gerrit.cloudera.org/c/20399/3/be/src/codegen/CMakeLists.txt#115 it 
would almost certainly work poorly.


http://gerrit.cloudera.org:8080/#/c/20399/3/be/src/codegen/llvm-codegen.cc@1340
PS3, Line 1340: COUNTER_SET(num_opt_functions_,
> line too long (91 > 90)
Done


http://gerrit.cloudera.org:8080/#/c/20399/3/be/src/codegen/llvm-codegen.cc@1343
PS3, Line 1343:   } else {
> line too long (91 > 90)
Done



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I371f8758b6552263e91a1fbfd9a6e1c28e1fa2bd
Gerrit-Change-Number: 20399
Gerrit-PatchSet: 5
Gerrit-Owner: Michael Smith 
Gerrit-Reviewer: Daniel Becker 
Gerrit-Reviewer: Impala Public Jenkins 
Gerrit-Reviewer: Michael Smith 
Gerrit-Reviewer: Noemi Pap-Takacs 
Gerrit-Reviewer: Yida Wu 
Gerrit-Comment-Date: Fri, 25 Aug 2023 17:06:25 +
Gerrit-HasComments: Yes


[Impala-ASF-CR] IMPALA-12383: Fix SingleNodePlanner aggregation limits

2023-08-25 Thread Impala Public Jenkins (Code Review)
Impala Public Jenkins has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/20379 )

Change subject: IMPALA-12383: Fix SingleNodePlanner aggregation limits
..


Patch Set 8:

Build Successful

https://jenkins.impala.io/job/gerrit-code-review-checks/13844/ : Initial code 
review checks passed. Use gerrit-verify-dryrun-external or gerrit-verify-dryrun 
to run full precommit tests.


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ic5eec1190e8e182152aa954897b79cc3f219c816
Gerrit-Change-Number: 20379
Gerrit-PatchSet: 8
Gerrit-Owner: Michael Smith 
Gerrit-Reviewer: Impala Public Jenkins 
Gerrit-Reviewer: Joe McDonnell 
Gerrit-Reviewer: Michael Smith 
Gerrit-Reviewer: Qifan Chen 
Gerrit-Reviewer: Quanlong Huang 
Gerrit-Comment-Date: Fri, 25 Aug 2023 17:09:57 +
Gerrit-HasComments: No


[Impala-ASF-CR] IMPALA-5081: Add codegen opt level query option

2023-08-25 Thread Michael Smith (Code Review)
Hello Daniel Becker, Yida Wu, Noemi Pap-Takacs, Impala Public Jenkins,

I'd like you to reexamine a change. Please visit

http://gerrit.cloudera.org:8080/20399

to look at the new patch set (#5).

Change subject: IMPALA-5081: Add codegen_opt_level query option
..

IMPALA-5081: Add codegen_opt_level query option

Adds the 'codegen_opt_level' query option to select LLVM optimization
level for generated code. Retains the prior behavior - O2 - as default.

If optimization level is changed for an entry already in cache, the
cache entry will be used unless the new optimization level is higher
than the cached level.

Adds unit tests that levels besides O0 inline and optimize a test
function.

Change-Id: I371f8758b6552263e91a1fbfd9a6e1c28e1fa2bd
---
M be/src/codegen/CMakeLists.txt
M be/src/codegen/llvm-codegen-cache-test.cc
M be/src/codegen/llvm-codegen-cache.cc
M be/src/codegen/llvm-codegen-cache.h
M be/src/codegen/llvm-codegen-test.cc
M be/src/codegen/llvm-codegen.cc
M be/src/codegen/llvm-codegen.h
M be/src/service/query-options.cc
M be/src/service/query-options.h
M common/thrift/ImpalaService.thrift
M common/thrift/Query.thrift
A testdata/llvm/test-opt.cc
12 files changed, 304 insertions(+), 38 deletions(-)


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I371f8758b6552263e91a1fbfd9a6e1c28e1fa2bd
Gerrit-Change-Number: 20399
Gerrit-PatchSet: 5
Gerrit-Owner: Michael Smith 
Gerrit-Reviewer: Daniel Becker 
Gerrit-Reviewer: Impala Public Jenkins 
Gerrit-Reviewer: Michael Smith 
Gerrit-Reviewer: Noemi Pap-Takacs 
Gerrit-Reviewer: Yida Wu 


[Impala-ASF-CR] IMPALA-5081: Add codegen opt level query option

2023-08-25 Thread Michael Smith (Code Review)
Hello Daniel Becker, Yida Wu, Noemi Pap-Takacs, Impala Public Jenkins,

I'd like you to reexamine a change. Please visit

http://gerrit.cloudera.org:8080/20399

to look at the new patch set (#4).

Change subject: IMPALA-5081: Add codegen_opt_level query option
..

IMPALA-5081: Add codegen_opt_level query option

Adds the 'codegen_opt_level' query option to select LLVM optimization
level for generated code. Retains the prior behavior - O2 - as default.

If optimization level is changed for an entry already in cache, the
cache entry will be used unless the new optimization level is higher
than the cached level.

Adds unit tests that levels besides O0 inline and optimize a test
function.

Change-Id: I371f8758b6552263e91a1fbfd9a6e1c28e1fa2bd
---
M be/src/codegen/CMakeLists.txt
M be/src/codegen/llvm-codegen-cache-test.cc
M be/src/codegen/llvm-codegen-cache.cc
M be/src/codegen/llvm-codegen-cache.h
M be/src/codegen/llvm-codegen-test.cc
M be/src/codegen/llvm-codegen.cc
M be/src/codegen/llvm-codegen.h
M be/src/service/query-options.cc
M be/src/service/query-options.h
M common/thrift/ImpalaService.thrift
M common/thrift/Query.thrift
A testdata/llvm/test-opt.cc
12 files changed, 302 insertions(+), 38 deletions(-)


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I371f8758b6552263e91a1fbfd9a6e1c28e1fa2bd
Gerrit-Change-Number: 20399
Gerrit-PatchSet: 4
Gerrit-Owner: Michael Smith 
Gerrit-Reviewer: Daniel Becker 
Gerrit-Reviewer: Impala Public Jenkins 
Gerrit-Reviewer: Michael Smith 
Gerrit-Reviewer: Noemi Pap-Takacs 
Gerrit-Reviewer: Yida Wu 


[Impala-ASF-CR] IMPALA-5081: Add codegen opt level query option

2023-08-25 Thread Impala Public Jenkins (Code Review)
Impala Public Jenkins has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/20399 )

Change subject: IMPALA-5081: Add codegen_opt_level query option
..


Patch Set 4:

(2 comments)

http://gerrit.cloudera.org:8080/#/c/20399/4/be/src/codegen/llvm-codegen.cc
File be/src/codegen/llvm-codegen.cc:

http://gerrit.cloudera.org:8080/#/c/20399/4/be/src/codegen/llvm-codegen.cc@1340
PS4, Line 1340: COUNTER_SET(num_opt_functions_, 
counter.GetCount(InstructionCounter::TOTAL_FUNCTIONS));
line too long (91 > 90)


http://gerrit.cloudera.org:8080/#/c/20399/4/be/src/codegen/llvm-codegen.cc@1343
PS4, Line 1343: COUNTER_SET(num_opt_functions_, 
counter.GetCount(InstructionCounter::TOTAL_FUNCTIONS));
line too long (91 > 90)



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I371f8758b6552263e91a1fbfd9a6e1c28e1fa2bd
Gerrit-Change-Number: 20399
Gerrit-PatchSet: 4
Gerrit-Owner: Michael Smith 
Gerrit-Reviewer: Daniel Becker 
Gerrit-Reviewer: Impala Public Jenkins 
Gerrit-Reviewer: Michael Smith 
Gerrit-Reviewer: Noemi Pap-Takacs 
Gerrit-Reviewer: Yida Wu 
Gerrit-Comment-Date: Fri, 25 Aug 2023 17:00:07 +
Gerrit-HasComments: Yes


[Impala-ASF-CR] IMPALA-12383: Fix SingleNodePlanner aggregation limits

2023-08-25 Thread Michael Smith (Code Review)
Hello Quanlong Huang, Qifan Chen, Joe McDonnell, Impala Public Jenkins,

I'd like you to reexamine a change. Please visit

http://gerrit.cloudera.org:8080/20379

to look at the new patch set (#8).

Change subject: IMPALA-12383: Fix SingleNodePlanner aggregation limits
..

IMPALA-12383: Fix SingleNodePlanner aggregation limits

When IMPALA-2581 was implemented, it assumed all aggregation nodes would
have a pre-aggregation step that limits could be pushed to. That's not
the case when using SingleNodePlanner, such as when num_nodes=1. As a
result, the following query would incorrectly return 16 rows, not 10:

  set num_nodes=1;
  select distinct l_orderkey from tpch.lineitem limit 10;

This fix identifies all aggregation nodes that use pre-aggregation so we
use fast_limit_check in only those cases.

Testing:
- added a test case where we assert number of rows returned by an
  aggregation node (rather than an exchange or top-n).
- restores definition of ALL_CLUSTER_SIZES and makes it simpler to
  enable for individual test suites. Filed IMPALA-12394 to generally
  re-enable testing with ALL_CLUSTER_SIZES. Enables ALL_CLUSTER_SIZES
  for aggregation tests.

Change-Id: Ic5eec1190e8e182152aa954897b79cc3f219c816
---
M fe/src/main/java/org/apache/impala/planner/AggregationNode.java
M fe/src/main/java/org/apache/impala/planner/DistributedPlanner.java
M fe/src/main/java/org/apache/impala/planner/SingleNodePlanner.java
M tests/common/impala_test_suite.py
M tests/common/test_dimensions.py
M tests/query_test/test_aggregation.py
6 files changed, 49 insertions(+), 13 deletions(-)


  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/79/20379/8
--
To view, visit http://gerrit.cloudera.org:8080/20379
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: Ic5eec1190e8e182152aa954897b79cc3f219c816
Gerrit-Change-Number: 20379
Gerrit-PatchSet: 8
Gerrit-Owner: Michael Smith 
Gerrit-Reviewer: Impala Public Jenkins 
Gerrit-Reviewer: Joe McDonnell 
Gerrit-Reviewer: Michael Smith 
Gerrit-Reviewer: Qifan Chen 
Gerrit-Reviewer: Quanlong Huang 


[Impala-ASF-CR] IMPALA-12383: Fix SingleNodePlanner aggregation limits

2023-08-25 Thread Michael Smith (Code Review)
Michael Smith has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/20379 )

Change subject: IMPALA-12383: Fix SingleNodePlanner aggregation limits
..


Patch Set 7:

(2 comments)

http://gerrit.cloudera.org:8080/#/c/20379/4/fe/src/main/java/org/apache/impala/planner/AggregationNode.java
File fe/src/main/java/org/apache/impala/planner/AggregationNode.java:

http://gerrit.cloudera.org:8080/#/c/20379/4/fe/src/main/java/org/apache/impala/planner/AggregationNode.java@777
PS4, Line 777: return useIntermediateTuple_ || endsMultiPhase_;
> nit. May add a comment:  useIntermediateTuple_ is set to true for any non m
Done


http://gerrit.cloudera.org:8080/#/c/20379/4/fe/src/main/java/org/apache/impala/planner/AggregationNode.java@786
PS4, Line 786: && isMultiPhase()
> Okay. The test on useIntermediateTuple_ resolves my concern :-).  I think I
What's is_serial_plan? I don't understand what case that's supposed to cover. 
The link just points to where canCompleteEarly is called.



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ic5eec1190e8e182152aa954897b79cc3f219c816
Gerrit-Change-Number: 20379
Gerrit-PatchSet: 7
Gerrit-Owner: Michael Smith 
Gerrit-Reviewer: Impala Public Jenkins 
Gerrit-Reviewer: Joe McDonnell 
Gerrit-Reviewer: Michael Smith 
Gerrit-Reviewer: Qifan Chen 
Gerrit-Reviewer: Quanlong Huang 
Gerrit-Comment-Date: Fri, 25 Aug 2023 16:39:59 +
Gerrit-HasComments: Yes


[Impala-ASF-CR] IMPALA-12387: PartialUpdates is misleading for LOCAL filter

2023-08-25 Thread Riza Suminto (Code Review)
Riza Suminto has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/20397 )

Change subject: IMPALA-12387: PartialUpdates is misleading for LOCAL filter
..


Patch Set 2:

(1 comment)

Thank you for the +2!

http://gerrit.cloudera.org:8080/#/c/20397/1/testdata/workloads/functional-query/queries/QueryTest/in_list_filters.test
File testdata/workloads/functional-query/queries/QueryTest/in_list_filters.test:

http://gerrit.cloudera.org:8080/#/c/20397/1/testdata/workloads/functional-query/queries/QueryTest/in_list_filters.test@181
PS1, Line 181: LOCAL
> Sorry, I mean the size of the IN-list filter, i.e. how many items in the li
I'll try to look at it separately next time.



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I56078a458799671246ff90b831e5ecebd04a78e8
Gerrit-Change-Number: 20397
Gerrit-PatchSet: 2
Gerrit-Owner: Riza Suminto 
Gerrit-Reviewer: Impala Public Jenkins 
Gerrit-Reviewer: Quanlong Huang 
Gerrit-Reviewer: Riza Suminto 
Gerrit-Reviewer: Wenzhe Zhou 
Gerrit-Comment-Date: Fri, 25 Aug 2023 16:07:42 +
Gerrit-HasComments: Yes


[Impala-ASF-CR] IMPALA-12387: PartialUpdates is misleading for LOCAL filter

2023-08-25 Thread Impala Public Jenkins (Code Review)
Impala Public Jenkins has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/20397 )

Change subject: IMPALA-12387: PartialUpdates is misleading for LOCAL filter
..


Patch Set 2:

Build started: https://jenkins.impala.io/job/gerrit-verify-dryrun/9635/ 
DRY_RUN=false


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I56078a458799671246ff90b831e5ecebd04a78e8
Gerrit-Change-Number: 20397
Gerrit-PatchSet: 2
Gerrit-Owner: Riza Suminto 
Gerrit-Reviewer: Impala Public Jenkins 
Gerrit-Reviewer: Quanlong Huang 
Gerrit-Reviewer: Riza Suminto 
Gerrit-Reviewer: Wenzhe Zhou 
Gerrit-Comment-Date: Fri, 25 Aug 2023 16:07:17 +
Gerrit-HasComments: No


[Impala-ASF-CR] IMPALA-12387: PartialUpdates is misleading for LOCAL filter

2023-08-25 Thread Impala Public Jenkins (Code Review)
Impala Public Jenkins has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/20397 )

Change subject: IMPALA-12387: PartialUpdates is misleading for LOCAL filter
..


Patch Set 2: Code-Review+2


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I56078a458799671246ff90b831e5ecebd04a78e8
Gerrit-Change-Number: 20397
Gerrit-PatchSet: 2
Gerrit-Owner: Riza Suminto 
Gerrit-Reviewer: Impala Public Jenkins 
Gerrit-Reviewer: Quanlong Huang 
Gerrit-Reviewer: Riza Suminto 
Gerrit-Reviewer: Wenzhe Zhou 
Gerrit-Comment-Date: Fri, 25 Aug 2023 16:07:16 +
Gerrit-HasComments: No


[Impala-ASF-CR] IMPALA-12407: Add test table with Iceberg Equality deletes

2023-08-25 Thread Impala Public Jenkins (Code Review)
Impala Public Jenkins has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/20422 )

Change subject: IMPALA-12407: Add test table with Iceberg Equality deletes
..


Patch Set 1:

Build Successful

https://jenkins.impala.io/job/gerrit-code-review-checks/13843/ : Initial code 
review checks passed. Use gerrit-verify-dryrun-external or gerrit-verify-dryrun 
to run full precommit tests.


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I2d7e5928aff95ed09b1d7725b31a1698e3c31835
Gerrit-Change-Number: 20422
Gerrit-PatchSet: 1
Gerrit-Owner: Tamas Mate 
Gerrit-Reviewer: Gabor Kaszab 
Gerrit-Reviewer: Impala Public Jenkins 
Gerrit-Reviewer: Zoltan Borok-Nagy 
Gerrit-Comment-Date: Fri, 25 Aug 2023 14:48:20 +
Gerrit-HasComments: No


[Impala-ASF-CR] IMPALA-12407: Add test table with Iceberg Equality deletes

2023-08-25 Thread Tamas Mate (Code Review)
Tamas Mate has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/20422


Change subject: IMPALA-12407: Add test table with Iceberg Equality deletes
..

IMPALA-12407: Add test table with Iceberg Equality deletes

This commit updates the iceberg_v2_delete_equality test table. The
previous table was a modified positional delete table and the delete
files were actually positional delete files.

This table was created with Flink, which is one of the few services that
can write equality delete files currently.

Testing:
 - Queried the table manually from Hive/Impala
 - Ran the related E2E tests

Change-Id: I2d7e5928aff95ed09b1d7725b31a1698e3c31835
---
M testdata/data/README
A 
testdata/data/iceberg_test/hadoop_catalog/ice/iceberg_v2_delete_equality/data/0-0-231ec696-613a-4270-a1f1-1f69947622d4-1.parquet
A 
testdata/data/iceberg_test/hadoop_catalog/ice/iceberg_v2_delete_equality/data/0-0-231ec696-613a-4270-a1f1-1f69947622d4-2.parquet
A 
testdata/data/iceberg_test/hadoop_catalog/ice/iceberg_v2_delete_equality/data/0-0-931d6d35-d95e-468f-a7d9-d64f7a7b5282-1.parquet
A 
testdata/data/iceberg_test/hadoop_catalog/ice/iceberg_v2_delete_equality/data/0-0-931d6d35-d95e-468f-a7d9-d64f7a7b5282-2.parquet
A 
testdata/data/iceberg_test/hadoop_catalog/ice/iceberg_v2_delete_equality/data/0-0-e3ac4bad-51b8-4c65-a20e-4bff5b1726b7-1.parquet
A 
testdata/data/iceberg_test/hadoop_catalog/ice/iceberg_v2_delete_equality/data/0-0-e3ac4bad-51b8-4c65-a20e-4bff5b1726b7-2.parquet
D 
testdata/data/iceberg_test/hadoop_catalog/ice/iceberg_v2_delete_equality/data/0-0-fb178c51-b12a-4c5f-a66e-a8e9375daeba-1.parquet
D 
testdata/data/iceberg_test/hadoop_catalog/ice/iceberg_v2_delete_equality/data/00191-4-6e780302-527b-4911-8c6e-88d416adac57-1.parquet
D 
testdata/data/iceberg_test/hadoop_catalog/ice/iceberg_v2_delete_equality/metadata/0eadf173-0c84-4378-a9d0-5d7f47183978-m0.avro
A 
testdata/data/iceberg_test/hadoop_catalog/ice/iceberg_v2_delete_equality/metadata/22029492-dcdb-4ba1-a447-9b9f7200f9e4-m0.avro
A 
testdata/data/iceberg_test/hadoop_catalog/ice/iceberg_v2_delete_equality/metadata/22029492-dcdb-4ba1-a447-9b9f7200f9e4-m1.avro
A 
testdata/data/iceberg_test/hadoop_catalog/ice/iceberg_v2_delete_equality/metadata/30efd05a-a329-4420-8592-9fab221add9e-m0.avro
A 
testdata/data/iceberg_test/hadoop_catalog/ice/iceberg_v2_delete_equality/metadata/30efd05a-a329-4420-8592-9fab221add9e-m1.avro
A 
testdata/data/iceberg_test/hadoop_catalog/ice/iceberg_v2_delete_equality/metadata/490632c7-54bf-4362-97e7-b75ab18da9ac-m0.avro
A 
testdata/data/iceberg_test/hadoop_catalog/ice/iceberg_v2_delete_equality/metadata/490632c7-54bf-4362-97e7-b75ab18da9ac-m1.avro
D 
testdata/data/iceberg_test/hadoop_catalog/ice/iceberg_v2_delete_equality/metadata/8cbef400-daea-478a-858a-2baf2438f644-m0.avro
C 
testdata/data/iceberg_test/hadoop_catalog/ice/iceberg_v2_delete_equality/metadata/snap-3207673167795000154-2-30efd05a-a329-4420-8592-9fab221add9e.avro
R 
testdata/data/iceberg_test/hadoop_catalog/ice/iceberg_v2_delete_equality/metadata/snap-36159809790235-1-22029492-dcdb-4ba1-a447-9b9f7200f9e4.avro
D 
testdata/data/iceberg_test/hadoop_catalog/ice/iceberg_v2_delete_equality/metadata/snap-5725822353600261755-1-0eadf173-0c84-4378-a9d0-5d7f47183978.avro
C 
testdata/data/iceberg_test/hadoop_catalog/ice/iceberg_v2_delete_equality/metadata/snap-5763349507283783091-3-490632c7-54bf-4362-97e7-b75ab18da9ac.avro
M 
testdata/data/iceberg_test/hadoop_catalog/ice/iceberg_v2_delete_equality/metadata/v1.metadata.json
M 
testdata/data/iceberg_test/hadoop_catalog/ice/iceberg_v2_delete_equality/metadata/v2.metadata.json
A 
testdata/data/iceberg_test/hadoop_catalog/ice/iceberg_v2_delete_equality/metadata/v3.metadata.json
A 
testdata/data/iceberg_test/hadoop_catalog/ice/iceberg_v2_delete_equality/metadata/v4.metadata.json
D 
testdata/data/iceberg_test/hadoop_catalog/ice/iceberg_v2_delete_equality/metadata/version-hint.text
A 
testdata/data/iceberg_test/hadoop_catalog/ice/iceberg_v2_delete_equality/metadata/version-hint.txt
M testdata/workloads/functional-query/queries/QueryTest/iceberg-negative.test
28 files changed, 359 insertions(+), 87 deletions(-)



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I2d7e5928aff95ed09b1d7725b31a1698e3c31835
Gerrit-Change-Number: 20422
Gerrit-PatchSet: 1
Gerrit-Owner: Tamas Mate 


[Impala-ASF-CR] IMPALA-12089: Be able to skip pushing down a subset of the predicates

2023-08-25 Thread Gabor Kaszab (Code Review)
Gabor Kaszab has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/20133 )

Change subject: IMPALA-12089: Be able to skip pushing down a subset of the 
predicates
..


Patch Set 8: Code-Review+1

(2 comments)

Just some minor nits, looks good in overall.

http://gerrit.cloudera.org:8080/#/c/20133/8/common/thrift/ImpalaService.thrift
File common/thrift/ImpalaService.thrift:

http://gerrit.cloudera.org:8080/#/c/20133/8/common/thrift/ImpalaService.thrift@846
PS8, Line 846: the the
nit: typo


http://gerrit.cloudera.org:8080/#/c/20133/8/fe/src/main/java/org/apache/impala/planner/IcebergScanPlanner.java
File fe/src/main/java/org/apache/impala/planner/IcebergScanPlanner.java:

http://gerrit.cloudera.org:8080/#/c/20133/8/fe/src/main/java/org/apache/impala/planner/IcebergScanPlanner.java@426
PS8, Line 426:   LOG.debug("Iceberg predicate pushdown subsetting took {} 
ms",
I'd also push down this logging into the newly introduced function to reduce 
the noise from this level.



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I597f69ad03ecaf9e304613ef934654e3d9614ae8
Gerrit-Change-Number: 20133
Gerrit-PatchSet: 8
Gerrit-Owner: Peter Rozsa 
Gerrit-Reviewer: Gabor Kaszab 
Gerrit-Reviewer: Impala Public Jenkins 
Gerrit-Reviewer: Peter Rozsa 
Gerrit-Comment-Date: Fri, 25 Aug 2023 13:23:13 +
Gerrit-HasComments: Yes


[Impala-ASF-CR] IMPALA-12403: Fix Kerberos authentication when connecting with a proxy user that does not delegate another user

2023-08-25 Thread Impala Public Jenkins (Code Review)
Impala Public Jenkins has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/20421 )

Change subject: IMPALA-12403: Fix Kerberos authentication when connecting with 
a proxy user that does not delegate another user
..


Patch Set 2: Verified+1


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I0141cd341cda84ed40cd72f8a038c8d5a215e5e1
Gerrit-Change-Number: 20421
Gerrit-PatchSet: 2
Gerrit-Owner: Gergely Farkas 
Gerrit-Reviewer: Impala Public Jenkins 
Gerrit-Comment-Date: Fri, 25 Aug 2023 13:08:13 +
Gerrit-HasComments: No


[Impala-ASF-CR] IMPALA-5081: Add codegen opt level query option

2023-08-25 Thread Daniel Becker (Code Review)
Daniel Becker has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/20399 )

Change subject: IMPALA-5081: Add codegen_opt_level query option
..


Patch Set 3:

(4 comments)

http://gerrit.cloudera.org:8080/#/c/20399/3/be/src/codegen/llvm-codegen-test.cc
File be/src/codegen/llvm-codegen-test.cc:

http://gerrit.cloudera.org:8080/#/c/20399/3/be/src/codegen/llvm-codegen-test.cc@679
PS3, Line 679: used
Nit: use.


http://gerrit.cloudera.org:8080/#/c/20399/3/be/src/codegen/llvm-codegen-test.cc@694
PS3, Line 694: 5
Instead of hard-coding this value, we could extract the opt levels on L673 into 
a collection (e.g. vector) and use its size.


http://gerrit.cloudera.org:8080/#/c/20399/2/be/src/codegen/llvm-codegen.cc
File be/src/codegen/llvm-codegen.cc:

http://gerrit.cloudera.org:8080/#/c/20399/2/be/src/codegen/llvm-codegen.cc@1448
PS2, Line 1448: p
> This is multiplication and preserves the prior formatting. Pretty sure code
Right, I thought it was pointer dereferencing.


http://gerrit.cloudera.org:8080/#/c/20399/3/be/src/codegen/llvm-codegen.cc
File be/src/codegen/llvm-codegen.cc:

http://gerrit.cloudera.org:8080/#/c/20399/3/be/src/codegen/llvm-codegen.cc@129
PS3, Line 129: "The IR optimization level for pre-generated code; supports 
O1, O2, and Os.");
Is O0 removed because it prevents further optimisation?



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I371f8758b6552263e91a1fbfd9a6e1c28e1fa2bd
Gerrit-Change-Number: 20399
Gerrit-PatchSet: 3
Gerrit-Owner: Michael Smith 
Gerrit-Reviewer: Daniel Becker 
Gerrit-Reviewer: Impala Public Jenkins 
Gerrit-Reviewer: Michael Smith 
Gerrit-Reviewer: Noemi Pap-Takacs 
Gerrit-Reviewer: Yida Wu 
Gerrit-Comment-Date: Fri, 25 Aug 2023 11:52:29 +
Gerrit-HasComments: Yes


[Impala-ASF-CR] IMPALA-10086: SqlCastException when comparing char with varchar

2023-08-25 Thread Daniel Becker (Code Review)
Daniel Becker has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/18001 )

Change subject: IMPALA-10086: SqlCastException when comparing char with varchar
..


Patch Set 2:

(1 comment)

http://gerrit.cloudera.org:8080/#/c/18001/2/fe/src/main/java/org/apache/impala/analysis/Expr.java
File fe/src/main/java/org/apache/impala/analysis/Expr.java:

http://gerrit.cloudera.org:8080/#/c/18001/2/fe/src/main/java/org/apache/impala/analysis/Expr.java@1574
PS2, Line 1574:   if (!(((targetType.isWildcardVarchar() || 
targetType.isWildcardChar()) && type.isVarchar()) ||
This condition has lots of parentheses, it is difficult to read. We could 
extract some meaningful subexpressions into variables with descriptive names.



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I3cd331ae1b6afb778a88080efd38900694539a89
Gerrit-Change-Number: 18001
Gerrit-PatchSet: 2
Gerrit-Owner: Bruno Pusztahazi 
Gerrit-Reviewer: Daniel Becker 
Gerrit-Reviewer: Impala Public Jenkins 
Gerrit-Comment-Date: Fri, 25 Aug 2023 09:40:52 +
Gerrit-HasComments: Yes


[Impala-ASF-CR] IMPALA-10856: Show client hosts and connections in the web UI

2023-08-25 Thread ttttttz (Code Review)
ttz has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/20358 )

Change subject: IMPALA-10856: Show client hosts and connections in the web UI
..


Patch Set 7:

> Patch Set 7: Code-Review+1

Hi, Quanlong! Can I request to merge the master branch now?


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ie89015b00e1b97a1836eeca205b2c80b32300227
Gerrit-Change-Number: 20358
Gerrit-PatchSet: 7
Gerrit-Owner: ttz <2433038...@qq.com>
Gerrit-Reviewer: Impala Public Jenkins 
Gerrit-Reviewer: Quanlong Huang 
Gerrit-Reviewer: Zihao Ye 
Gerrit-Reviewer: ttz <2433038...@qq.com>
Gerrit-Comment-Date: Fri, 25 Aug 2023 09:05:41 +
Gerrit-HasComments: No


[Impala-ASF-CR] IMPALA-10798: Initial support for reading JSON files

2023-08-25 Thread Zihao Ye (Code Review)
Zihao Ye has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/19699 )

Change subject: IMPALA-10798: Initial support for reading JSON files
..


Patch Set 30:

Done, the startup flag enable_json_scanner has been added and a related test 
has been added too.


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I31309cb8f2d04722a0508b3f9b8f1532ad49a569
Gerrit-Change-Number: 19699
Gerrit-PatchSet: 30
Gerrit-Owner: Zihao Ye 
Gerrit-Reviewer: Impala Public Jenkins 
Gerrit-Reviewer: Quanlong Huang 
Gerrit-Reviewer: Zihao Ye 
Gerrit-Comment-Date: Fri, 25 Aug 2023 08:58:56 +
Gerrit-HasComments: No


[Impala-ASF-CR] IMPALA-12403: Fix Kerberos authentication when connecting with a proxy user that does not delegate another user

2023-08-25 Thread Impala Public Jenkins (Code Review)
Impala Public Jenkins has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/20421 )

Change subject: IMPALA-12403: Fix Kerberos authentication when connecting with 
a proxy user that does not delegate another user
..


Patch Set 2:

Build started: https://jenkins.impala.io/job/gerrit-verify-dryrun/9634/ 
DRY_RUN=true


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I0141cd341cda84ed40cd72f8a038c8d5a215e5e1
Gerrit-Change-Number: 20421
Gerrit-PatchSet: 2
Gerrit-Owner: Gergely Farkas 
Gerrit-Reviewer: Impala Public Jenkins 
Gerrit-Comment-Date: Fri, 25 Aug 2023 08:43:53 +
Gerrit-HasComments: No


[Impala-ASF-CR] IMPALA-12403: Fix Kerberos authentication when connecting with a proxy user that does not delegate another user

2023-08-25 Thread Impala Public Jenkins (Code Review)
Impala Public Jenkins has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/20421 )

Change subject: IMPALA-12403: Fix Kerberos authentication when connecting with 
a proxy user that does not delegate another user
..


Patch Set 2:

Build Successful

https://jenkins.impala.io/job/gerrit-code-review-checks/13842/ : Initial code 
review checks passed. Use gerrit-verify-dryrun-external or gerrit-verify-dryrun 
to run full precommit tests.


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I0141cd341cda84ed40cd72f8a038c8d5a215e5e1
Gerrit-Change-Number: 20421
Gerrit-PatchSet: 2
Gerrit-Owner: Gergely Farkas 
Gerrit-Reviewer: Impala Public Jenkins 
Gerrit-Comment-Date: Fri, 25 Aug 2023 08:43:12 +
Gerrit-HasComments: No


[Impala-ASF-CR] IMPALA-12403: Fix Kerberos authentication when connecting with a proxy user that does not delegate another user

2023-08-25 Thread Impala Public Jenkins (Code Review)
Impala Public Jenkins has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/20421 )

Change subject: IMPALA-12403: Fix Kerberos authentication when connecting with 
a proxy user that does not delegate another user
..


Patch Set 1:

Build Successful

https://jenkins.impala.io/job/gerrit-code-review-checks/13841/ : Initial code 
review checks passed. Use gerrit-verify-dryrun-external or gerrit-verify-dryrun 
to run full precommit tests.


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I0141cd341cda84ed40cd72f8a038c8d5a215e5e1
Gerrit-Change-Number: 20421
Gerrit-PatchSet: 1
Gerrit-Owner: Gergely Farkas 
Gerrit-Reviewer: Impala Public Jenkins 
Gerrit-Comment-Date: Fri, 25 Aug 2023 08:36:33 +
Gerrit-HasComments: No


[Impala-ASF-CR] IMPALA-12403: Fix Kerberos authentication when connecting with a proxy user that does not delegate another user

2023-08-25 Thread Gergely Farkas (Code Review)
Hello Impala Public Jenkins,

I'd like you to reexamine a change. Please visit

http://gerrit.cloudera.org:8080/20421

to look at the new patch set (#2).

Change subject: IMPALA-12403: Fix Kerberos authentication when connecting with 
a proxy user that does not delegate another user
..

IMPALA-12403: Fix Kerberos authentication when connecting with a proxy
user that does not delegate another user

This change improves LDAP checking in the Hiveserver2 API where
previously LDAP filter checks were run on the user principal received
in Kerberos authentication, but after the modification they are run on
the short username taken from the Kerberos principal.

Tested with new custom cluster tests.

Change-Id: I0141cd341cda84ed40cd72f8a038c8d5a215e5e1
---
M be/src/rpc/authentication.cc
M be/src/rpc/thrift-server.h
M be/src/service/impala-hs2-server.cc
M be/src/transport/TSasl.cpp
M be/src/transport/TSasl.h
M be/src/transport/TSaslTransport.cpp
M be/src/transport/TSaslTransport.h
M be/src/util/auth-util.cc
M be/src/util/auth-util.h
M fe/src/test/java/org/apache/impala/customcluster/LdapImpalaShellTest.java
M 
fe/src/test/java/org/apache/impala/customcluster/LdapKerberosImpalaShellTest.java
M 
fe/src/test/java/org/apache/impala/customcluster/LdapSearchBindImpalaShellTest.java
12 files changed, 129 insertions(+), 22 deletions(-)


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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I0141cd341cda84ed40cd72f8a038c8d5a215e5e1
Gerrit-Change-Number: 20421
Gerrit-PatchSet: 2
Gerrit-Owner: Gergely Farkas 
Gerrit-Reviewer: Impala Public Jenkins 


[Impala-ASF-CR] IMPALA-12403: Fix Kerberos authentication when connecting with a proxy user that does not delegate another user

2023-08-25 Thread Gergely Farkas (Code Review)
Gergely Farkas has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/20421


Change subject: IMPALA-12403: Fix Kerberos authentication when connecting with 
a proxy user that does not delegate another user
..

IMPALA-12403: Fix Kerberos authentication when connecting with a proxy
user that does not delegate another user

This change improves LDAP checking in the Hiveserver2 API where
previously LDAP filter checks were run on the user principal received
in Kerberos authentication, but after the modification they are run on
the short username taken from the Kerberos principal.

Tested with new custom cluster tests.

Change-Id: I0141cd341cda84ed40cd72f8a038c8d5a215e5e1
---
M be/src/rpc/authentication.cc
M be/src/rpc/thrift-server.h
M be/src/service/impala-hs2-server.cc
M be/src/transport/TSasl.cpp
M be/src/transport/TSasl.h
M be/src/transport/TSaslTransport.cpp
M be/src/transport/TSaslTransport.h
M be/src/util/auth-util.cc
M be/src/util/auth-util.h
M fe/src/test/java/org/apache/impala/customcluster/LdapImpalaShellTest.java
M 
fe/src/test/java/org/apache/impala/customcluster/LdapKerberosImpalaShellTest.java
M 
fe/src/test/java/org/apache/impala/customcluster/LdapSearchBindImpalaShellTest.java
12 files changed, 130 insertions(+), 22 deletions(-)



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I0141cd341cda84ed40cd72f8a038c8d5a215e5e1
Gerrit-Change-Number: 20421
Gerrit-PatchSet: 1
Gerrit-Owner: Gergely Farkas 


[Impala-ASF-CR] IMPALA-12403: Fix Kerberos authentication when connecting with a proxy user that does not delegate another user

2023-08-25 Thread Impala Public Jenkins (Code Review)
Impala Public Jenkins has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/20421 )

Change subject: IMPALA-12403: Fix Kerberos authentication when connecting with 
a proxy user that does not delegate another user
..


Patch Set 1:

(1 comment)

http://gerrit.cloudera.org:8080/#/c/20421/1/fe/src/test/java/org/apache/impala/customcluster/LdapSearchBindImpalaShellTest.java
File 
fe/src/test/java/org/apache/impala/customcluster/LdapSearchBindImpalaShellTest.java:

http://gerrit.cloudera.org:8080/#/c/20421/1/fe/src/test/java/org/apache/impala/customcluster/LdapSearchBindImpalaShellTest.java@182
PS1, Line 182: + 
"--ldap_user_filter=(&(objectClass=person)(cn={0})(!(cn=Test2Ldap))) "
line too long (92 > 90)



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I0141cd341cda84ed40cd72f8a038c8d5a215e5e1
Gerrit-Change-Number: 20421
Gerrit-PatchSet: 1
Gerrit-Owner: Gergely Farkas 
Gerrit-Reviewer: Impala Public Jenkins 
Gerrit-Comment-Date: Fri, 25 Aug 2023 08:11:47 +
Gerrit-HasComments: Yes