(Translated by https://www.hiragana.jp/)
PHOENIX-6365 Bogus AmbiguousTableException in query with aliases on l… by stoty · Pull Request #1133 · apache/phoenix · GitHub
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHOENIX-6365 Bogus AmbiguousTableException in query with aliases on l… #1133

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

stoty
Copy link
Contributor

@stoty stoty commented Feb 5, 2021

…ocal indexed tables

@@ -893,15 +893,14 @@ public Void visit(NamedTableNode tableNode) throws SQLException {
TableRef tableRef = createTableRef(connectionSchemaName, tableNode, true, false);
PTable theTable = tableRef.getTable();

String name = theTable.getName().getString();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: maybe extract this logic to a private helper function so it doesn't have to be duplicated in two places

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@stoty
Copy link
Contributor Author

stoty commented Feb 5, 2021

This causes a few tests that try to access columns by un-aliased names to fail.
My first instinct was to look up the standard, but It's not free. However, what resources ARE available, all state that you must not refer to an aliased table by its original name

https://crate.io/docs/sql-99/en/latest/chapters/18.html#correlation-name

Once you’ve defined a <Correlation name> for a Table, you must use it to refer to that Table throughout the entire transaction – for example, whenever you would normally use the <Table name> to qualify a <Column name>, use the <Correlation name> instead.
I've tested with mariadb, and it works as described above.

I don't know if this behaviour has historical reasons, or a simple bug that got codified in the tests, but think that we should strive to sql compatible, and follow the standard.

WDYT @gjacoby126 ?

@stoty
Copy link
Contributor Author

stoty commented Feb 5, 2021

💔 -1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 4m 27s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+1 💚 hbaseanti 0m 0s Patch does not have any anti-patterns.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
+1 💚 test4tests 0m 0s The patch appears to include 1 new or modified test files.
_ master Compile Tests _
+1 💚 mvninstall 15m 27s master passed
+0 hbaserecompile 21m 52s HBase recompiled.
+1 💚 compile 1m 1s master passed
+1 💚 checkstyle 0m 41s master passed
+1 💚 javadoc 0m 51s master passed
+0 🆗 spotbugs 3m 27s phoenix-core in master has 959 extant spotbugs warnings.
_ Patch Compile Tests _
+1 💚 mvninstall 11m 44s the patch passed
+0 hbaserecompile 24m 4s HBase recompiled.
+1 💚 compile 1m 26s the patch passed
+1 💚 javac 1m 26s the patch passed
+1 💚 checkstyle 0m 45s the patch passed
+1 💚 whitespace 0m 0s The patch has no whitespace issues.
+1 💚 javadoc 1m 1s the patch passed
+1 💚 spotbugs 4m 30s the patch passed
_ Other Tests _
-1 ❌ unit 113m 42s phoenix-core in the patch failed.
+1 💚 asflicense 0m 37s The patch does not generate ASF License warnings.
178m 13s
Reason Tests
Failed junit tests phoenix.end2end.index.LocalIndexIT
phoenix.end2end.join.HashJoinNoIndexIT
phoenix.end2end.join.SortMergeJoinNoIndexIT
phoenix.end2end.QueryIT
phoenix.end2end.join.SortMergeJoinNoSpoolingIT
phoenix.end2end.join.SortMergeJoinLocalIndexIT
phoenix.end2end.join.HashJoinLocalIndexIT
phoenix.end2end.join.HashJoinGlobalIndexIT
phoenix.end2end.join.SortMergeJoinGlobalIndexIT
phoenix.end2end.UpsertSelectIT
Subsystem Report/Notes
Docker ClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1133/1/artifact/yetus-general-check/output/Dockerfile
GITHUB PR #1133
Optional Tests dupname asflicense javac javadoc unit spotbugs hbaserebuild hbaseanti checkstyle compile
uname Linux f21d40538c69 4.15.0-60-generic #67-Ubuntu SMP Thu Aug 22 16:55:30 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev/phoenix-personality.sh
git revision master / d6672f4
Default Java Private Build-1.8.0_242-8u242-b08-0ubuntu3~16.04-b08
unit https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1133/1/artifact/yetus-general-check/output/patch-unit-phoenix-core.txt
Test Results https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1133/1/testReport/
Max. process+thread count 12496 (vs. ulimit of 30000)
modules C: phoenix-core U: phoenix-core
Console output https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1133/1/console
versions git=2.7.4 maven=3.3.9 spotbugs=4.1.3
Powered by Apache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@stoty
Copy link
Contributor Author

stoty commented Feb 5, 2021

💔 -1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 0m 36s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+1 💚 hbaseanti 0m 0s Patch does not have any anti-patterns.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
+1 💚 test4tests 0m 0s The patch appears to include 1 new or modified test files.
_ master Compile Tests _
+1 💚 mvninstall 18m 8s master passed
+0 hbaserecompile 25m 19s HBase recompiled.
+1 💚 compile 0m 59s master passed
+1 💚 checkstyle 0m 44s master passed
+1 💚 javadoc 0m 51s master passed
+0 🆗 spotbugs 3m 4s phoenix-core in master has 959 extant spotbugs warnings.
_ Patch Compile Tests _
+1 💚 mvninstall 8m 2s the patch passed
+0 hbaserecompile 17m 37s HBase recompiled.
+1 💚 compile 1m 5s the patch passed
+1 💚 javac 1m 5s the patch passed
-1 ❌ checkstyle 0m 46s phoenix-core: The patch generated 12 new + 554 unchanged - 9 fixed = 566 total (was 563)
+1 💚 whitespace 0m 0s The patch has no whitespace issues.
+1 💚 javadoc 0m 53s the patch passed
+1 💚 spotbugs 3m 16s the patch passed
_ Other Tests _
-1 ❌ unit 104m 45s phoenix-core in the patch failed.
+1 💚 asflicense 0m 44s The patch does not generate ASF License warnings.
160m 40s
Reason Tests
Failed junit tests phoenix.end2end.index.LocalIndexIT
phoenix.end2end.join.HashJoinNoIndexIT
phoenix.end2end.join.SortMergeJoinNoIndexIT
phoenix.end2end.QueryIT
phoenix.end2end.join.SortMergeJoinNoSpoolingIT
phoenix.end2end.join.SortMergeJoinLocalIndexIT
phoenix.end2end.join.HashJoinLocalIndexIT
phoenix.end2end.join.HashJoinGlobalIndexIT
phoenix.end2end.join.SortMergeJoinGlobalIndexIT
phoenix.end2end.PermissionNSEnabledWithCustomAccessControllerIT
Subsystem Report/Notes
Docker ClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1133/2/artifact/yetus-general-check/output/Dockerfile
GITHUB PR #1133
Optional Tests dupname asflicense javac javadoc unit spotbugs hbaserebuild hbaseanti checkstyle compile
uname Linux a34ea177e530 4.15.0-60-generic #67-Ubuntu SMP Thu Aug 22 16:55:30 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev/phoenix-personality.sh
git revision master / d6672f4
Default Java Private Build-1.8.0_242-8u242-b08-0ubuntu3~16.04-b08
checkstyle https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1133/2/artifact/yetus-general-check/output/diff-checkstyle-phoenix-core.txt
unit https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1133/2/artifact/yetus-general-check/output/patch-unit-phoenix-core.txt
Test Results https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1133/2/testReport/
Max. process+thread count 13655 (vs. ulimit of 30000)
modules C: phoenix-core U: phoenix-core
Console output https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1133/2/console
versions git=2.7.4 maven=3.3.9 spotbugs=4.1.3
Powered by Apache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@stoty
Copy link
Contributor Author

stoty commented Feb 7, 2021

wildcard selects with correlation names and local indexes still need to be fixed.

@stoty
Copy link
Contributor Author

stoty commented Feb 7, 2021

💔 -1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 1m 20s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+1 💚 hbaseanti 0m 0s Patch does not have any anti-patterns.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
+1 💚 test4tests 0m 0s The patch appears to include 1 new or modified test files.
_ master Compile Tests _
+1 💚 mvninstall 16m 42s master passed
+0 hbaserecompile 23m 48s HBase recompiled.
+1 💚 compile 1m 5s master passed
+1 💚 checkstyle 0m 40s master passed
+1 💚 javadoc 0m 53s master passed
+0 🆗 spotbugs 3m 17s phoenix-core in master has 959 extant spotbugs warnings.
_ Patch Compile Tests _
+1 💚 mvninstall 9m 53s the patch passed
+0 hbaserecompile 20m 6s HBase recompiled.
+1 💚 compile 1m 7s the patch passed
+1 💚 javac 1m 7s the patch passed
-1 ❌ checkstyle 0m 41s phoenix-core: The patch generated 12 new + 554 unchanged - 9 fixed = 566 total (was 563)
+1 💚 whitespace 0m 0s The patch has no whitespace issues.
+1 💚 javadoc 0m 51s the patch passed
+1 💚 spotbugs 3m 30s the patch passed
_ Other Tests _
-1 ❌ unit 1m 46s phoenix-core in the patch failed.
+1 💚 asflicense 0m 13s The patch does not generate ASF License warnings.
57m 39s
Reason Tests
Failed junit tests phoenix.compile.QueryCompilerTest
Subsystem Report/Notes
Docker ClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1133/3/artifact/yetus-general-check/output/Dockerfile
GITHUB PR #1133
Optional Tests dupname asflicense javac javadoc unit spotbugs hbaserebuild hbaseanti checkstyle compile
uname Linux 10012cf93d13 4.15.0-128-generic #131-Ubuntu SMP Wed Dec 9 06:57:35 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev/phoenix-personality.sh
git revision master / d6672f4
Default Java Private Build-1.8.0_242-8u242-b08-0ubuntu3~16.04-b08
checkstyle https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1133/3/artifact/yetus-general-check/output/diff-checkstyle-phoenix-core.txt
unit https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1133/3/artifact/yetus-general-check/output/patch-unit-phoenix-core.txt
Test Results https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1133/3/testReport/
Max. process+thread count 494 (vs. ulimit of 30000)
modules C: phoenix-core U: phoenix-core
Console output https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1133/3/console
versions git=2.7.4 maven=3.3.9 spotbugs=4.1.3
Powered by Apache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@stoty
Copy link
Contributor Author

stoty commented Feb 7, 2021

💔 -1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 0m 36s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 1s No case conflicting files found.
+1 💚 hbaseanti 0m 0s Patch does not have any anti-patterns.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
+1 💚 test4tests 0m 0s The patch appears to include 1 new or modified test files.
_ master Compile Tests _
+1 💚 mvninstall 16m 53s master passed
+0 hbaserecompile 24m 18s HBase recompiled.
+1 💚 compile 1m 9s master passed
+1 💚 checkstyle 0m 48s master passed
+1 💚 javadoc 0m 56s master passed
+0 🆗 spotbugs 3m 28s phoenix-core in master has 959 extant spotbugs warnings.
_ Patch Compile Tests _
+1 💚 mvninstall 9m 14s the patch passed
+0 hbaserecompile 19m 49s HBase recompiled.
+1 💚 compile 1m 5s the patch passed
+1 💚 javac 1m 5s the patch passed
-1 ❌ checkstyle 0m 45s phoenix-core: The patch generated 3 new + 563 unchanged - 0 fixed = 566 total (was 563)
+1 💚 whitespace 0m 0s The patch has no whitespace issues.
+1 💚 javadoc 0m 51s the patch passed
+1 💚 spotbugs 3m 34s the patch passed
_ Other Tests _
-1 ❌ unit 1m 47s phoenix-core in the patch failed.
+1 💚 asflicense 0m 17s The patch does not generate ASF License warnings.
57m 41s
Reason Tests
Failed junit tests phoenix.compile.QueryCompilerTest
Subsystem Report/Notes
Docker ClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1133/1/artifact/yetus-general-check/output/Dockerfile
GITHUB PR #1133
Optional Tests dupname asflicense javac javadoc unit spotbugs hbaserebuild hbaseanti checkstyle compile
uname Linux dc6a5715da44 4.15.0-60-generic #67-Ubuntu SMP Thu Aug 22 16:55:30 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev/phoenix-personality.sh
git revision master / d6672f4
Default Java Private Build-1.8.0_242-8u242-b08-0ubuntu3~16.04-b08
checkstyle https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1133/1/artifact/yetus-general-check/output/diff-checkstyle-phoenix-core.txt
unit https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1133/1/artifact/yetus-general-check/output/patch-unit-phoenix-core.txt
Test Results https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1133/1/testReport/
Max. process+thread count 457 (vs. ulimit of 30000)
modules C: phoenix-core U: phoenix-core
Console output https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1133/1/console
versions git=2.7.4 maven=3.3.9 spotbugs=4.1.3
Powered by Apache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@stoty
Copy link
Contributor Author

stoty commented Feb 9, 2021

💔 -1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 0m 35s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+1 💚 hbaseanti 0m 0s Patch does not have any anti-patterns.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
+1 💚 test4tests 0m 0s The patch appears to include 1 new or modified test files.
_ master Compile Tests _
+1 💚 mvninstall 16m 2s master passed
+0 hbaserecompile 23m 14s HBase recompiled.
+1 💚 compile 1m 7s master passed
+1 💚 checkstyle 0m 53s master passed
+1 💚 javadoc 0m 54s master passed
+0 🆗 spotbugs 3m 6s phoenix-core in master has 959 extant spotbugs warnings.
_ Patch Compile Tests _
+1 💚 mvninstall 8m 48s the patch passed
+0 hbaserecompile 19m 19s HBase recompiled.
+1 💚 compile 1m 4s the patch passed
+1 💚 javac 1m 4s the patch passed
-1 ❌ checkstyle 0m 54s phoenix-core: The patch generated 25 new + 897 unchanged - 9 fixed = 922 total (was 906)
+1 💚 whitespace 0m 0s The patch has no whitespace issues.
+1 💚 javadoc 0m 52s the patch passed
+1 💚 spotbugs 3m 24s the patch passed
_ Other Tests _
-1 ❌ unit 106m 47s phoenix-core in the patch failed.
+1 💚 asflicense 0m 45s The patch does not generate ASF License warnings.
163m 2s
Reason Tests
Failed junit tests phoenix.end2end.index.MutableIndexIT
phoenix.end2end.join.HashJoinNoIndexIT
phoenix.end2end.join.SortMergeJoinNoIndexIT
phoenix.end2end.join.SortMergeJoinNoSpoolingIT
phoenix.end2end.join.SortMergeJoinLocalIndexIT
phoenix.end2end.join.HashJoinLocalIndexIT
phoenix.end2end.join.HashJoinGlobalIndexIT
phoenix.end2end.join.SortMergeJoinGlobalIndexIT
Subsystem Report/Notes
Docker ClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1133/2/artifact/yetus-general-check/output/Dockerfile
GITHUB PR #1133
Optional Tests dupname asflicense javac javadoc unit spotbugs hbaserebuild hbaseanti checkstyle compile
uname Linux 6a8007bbbc7d 4.15.0-60-generic #67-Ubuntu SMP Thu Aug 22 16:55:30 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev/phoenix-personality.sh
git revision master / 1389fa2
Default Java Private Build-1.8.0_242-8u242-b08-0ubuntu3~16.04-b08
checkstyle https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1133/2/artifact/yetus-general-check/output/diff-checkstyle-phoenix-core.txt
unit https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1133/2/artifact/yetus-general-check/output/patch-unit-phoenix-core.txt
Test Results https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1133/2/testReport/
Max. process+thread count 13674 (vs. ulimit of 30000)
modules C: phoenix-core U: phoenix-core
Console output https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1133/2/console
versions git=2.7.4 maven=3.3.9 spotbugs=4.1.3
Powered by Apache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@stoty
Copy link
Contributor Author

stoty commented Feb 9, 2021

💔 -1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 0m 31s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+1 💚 hbaseanti 0m 0s Patch does not have any anti-patterns.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
+1 💚 test4tests 0m 0s The patch appears to include 1 new or modified test files.
_ master Compile Tests _
+1 💚 mvninstall 15m 57s master passed
+0 hbaserecompile 23m 12s HBase recompiled.
+1 💚 compile 1m 7s master passed
+1 💚 checkstyle 1m 4s master passed
+1 💚 javadoc 0m 55s master passed
+0 🆗 spotbugs 3m 18s phoenix-core in master has 959 extant spotbugs warnings.
_ Patch Compile Tests _
+1 💚 mvninstall 8m 24s the patch passed
+0 hbaserecompile 18m 31s HBase recompiled.
+1 💚 compile 1m 6s the patch passed
+1 💚 javac 1m 6s the patch passed
-1 ❌ checkstyle 1m 10s phoenix-core: The patch generated 47 new + 1426 unchanged - 31 fixed = 1473 total (was 1457)
+1 💚 whitespace 0m 0s The patch has no whitespace issues.
+1 💚 javadoc 0m 56s the patch passed
+1 💚 spotbugs 3m 38s the patch passed
_ Other Tests _
-1 ❌ unit 103m 48s phoenix-core in the patch failed.
+1 💚 asflicense 0m 46s The patch does not generate ASF License warnings.
160m 3s
Reason Tests
Failed junit tests phoenix.end2end.index.MutableIndexIT
Subsystem Report/Notes
Docker ClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1133/3/artifact/yetus-general-check/output/Dockerfile
GITHUB PR #1133
Optional Tests dupname asflicense javac javadoc unit spotbugs hbaserebuild hbaseanti checkstyle compile
uname Linux 6489c90fa86b 4.15.0-60-generic #67-Ubuntu SMP Thu Aug 22 16:55:30 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev/phoenix-personality.sh
git revision master / 1389fa2
Default Java Private Build-1.8.0_242-8u242-b08-0ubuntu3~16.04-b08
checkstyle https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1133/3/artifact/yetus-general-check/output/diff-checkstyle-phoenix-core.txt
unit https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1133/3/artifact/yetus-general-check/output/patch-unit-phoenix-core.txt
Test Results https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1133/3/testReport/
Max. process+thread count 14497 (vs. ulimit of 30000)
modules C: phoenix-core U: phoenix-core
Console output https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1133/3/console
versions git=2.7.4 maven=3.3.9 spotbugs=4.1.3
Powered by Apache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@stoty
Copy link
Contributor Author

stoty commented Feb 10, 2021

💔 -1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 0m 30s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 1s No case conflicting files found.
+1 💚 hbaseanti 0m 0s Patch does not have any anti-patterns.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
+1 💚 test4tests 0m 0s The patch appears to include 1 new or modified test files.
_ master Compile Tests _
+1 💚 mvninstall 15m 12s master passed
+0 hbaserecompile 22m 26s HBase recompiled.
+1 💚 compile 1m 2s master passed
+1 💚 checkstyle 1m 4s master passed
+1 💚 javadoc 0m 52s master passed
+0 🆗 spotbugs 3m 7s phoenix-core in master has 959 extant spotbugs warnings.
_ Patch Compile Tests _
+1 💚 mvninstall 8m 9s the patch passed
+0 hbaserecompile 18m 14s HBase recompiled.
+1 💚 compile 1m 3s the patch passed
+1 💚 javac 1m 3s the patch passed
-1 ❌ checkstyle 1m 10s phoenix-core: The patch generated 63 new + 1452 unchanged - 34 fixed = 1515 total (was 1486)
+1 💚 whitespace 0m 0s The patch has no whitespace issues.
+1 💚 javadoc 0m 50s the patch passed
+1 💚 spotbugs 3m 18s the patch passed
_ Other Tests _
-1 ❌ unit 103m 3s phoenix-core in the patch failed.
+1 💚 asflicense 0m 45s The patch does not generate ASF License warnings.
157m 25s
Reason Tests
Failed junit tests phoenix.end2end.index.MutableIndexIT
Subsystem Report/Notes
Docker ClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1133/4/artifact/yetus-general-check/output/Dockerfile
GITHUB PR #1133
Optional Tests dupname asflicense javac javadoc unit spotbugs hbaserebuild hbaseanti checkstyle compile
uname Linux 37b426827737 4.15.0-60-generic #67-Ubuntu SMP Thu Aug 22 16:55:30 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev/phoenix-personality.sh
git revision master / 9e90779
Default Java Private Build-1.8.0_242-8u242-b08-0ubuntu3~16.04-b08
checkstyle https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1133/4/artifact/yetus-general-check/output/diff-checkstyle-phoenix-core.txt
unit https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1133/4/artifact/yetus-general-check/output/patch-unit-phoenix-core.txt
Test Results https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1133/4/testReport/
Max. process+thread count 14343 (vs. ulimit of 30000)
modules C: phoenix-core U: phoenix-core
Console output https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1133/4/console
versions git=2.7.4 maven=3.3.9 spotbugs=4.1.3
Powered by Apache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@stoty
Copy link
Contributor Author

stoty commented Feb 10, 2021

💔 -1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 0m 29s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+1 💚 hbaseanti 0m 0s Patch does not have any anti-patterns.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
+1 💚 test4tests 0m 0s The patch appears to include 1 new or modified test files.
_ master Compile Tests _
+1 💚 mvninstall 14m 56s master passed
+0 hbaserecompile 21m 19s HBase recompiled.
+1 💚 compile 1m 4s master passed
+1 💚 checkstyle 1m 7s master passed
+1 💚 javadoc 0m 51s master passed
+0 🆗 spotbugs 3m 4s phoenix-core in master has 959 extant spotbugs warnings.
_ Patch Compile Tests _
+1 💚 mvninstall 8m 12s the patch passed
+0 hbaserecompile 18m 16s HBase recompiled.
+1 💚 compile 1m 4s the patch passed
+1 💚 javac 1m 4s the patch passed
-1 ❌ checkstyle 1m 10s phoenix-core: The patch generated 63 new + 1452 unchanged - 34 fixed = 1515 total (was 1486)
+1 💚 whitespace 0m 0s The patch has no whitespace issues.
+1 💚 javadoc 0m 52s the patch passed
+1 💚 spotbugs 3m 11s the patch passed
_ Other Tests _
-1 ❌ unit 104m 0s phoenix-core in the patch failed.
+1 💚 asflicense 0m 44s The patch does not generate ASF License warnings.
157m 18s
Reason Tests
Failed junit tests phoenix.end2end.index.MutableIndexIT
phoenix.end2end.UpsertSelectIT
Subsystem Report/Notes
Docker ClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1133/5/artifact/yetus-general-check/output/Dockerfile
GITHUB PR #1133
Optional Tests dupname asflicense javac javadoc unit spotbugs hbaserebuild hbaseanti checkstyle compile
uname Linux a5262357bb5a 4.15.0-60-generic #67-Ubuntu SMP Thu Aug 22 16:55:30 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev/phoenix-personality.sh
git revision master / 9e90779
Default Java Private Build-1.8.0_242-8u242-b08-0ubuntu3~16.04-b08
checkstyle https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1133/5/artifact/yetus-general-check/output/diff-checkstyle-phoenix-core.txt
unit https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1133/5/artifact/yetus-general-check/output/patch-unit-phoenix-core.txt
Test Results https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1133/5/testReport/
Max. process+thread count 13096 (vs. ulimit of 30000)
modules C: phoenix-core U: phoenix-core
Console output https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1133/5/console
versions git=2.7.4 maven=3.3.9 spotbugs=4.1.3
Powered by Apache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@stoty
Copy link
Contributor Author

stoty commented Feb 19, 2021

💔 -1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 5m 42s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+1 💚 hbaseanti 0m 0s Patch does not have any anti-patterns.
+1 💚 @author 0m 1s The patch does not contain any @author tags.
+1 💚 test4tests 0m 0s The patch appears to include 1 new or modified test files.
_ master Compile Tests _
+1 💚 mvninstall 17m 50s master passed
+0 hbaserecompile 25m 30s HBase recompiled.
+1 💚 compile 1m 9s master passed
+1 💚 checkstyle 1m 7s master passed
+1 💚 javadoc 0m 59s master passed
+0 🆗 spotbugs 3m 47s phoenix-core in master has 959 extant spotbugs warnings.
_ Patch Compile Tests _
+1 💚 mvninstall 9m 42s the patch passed
+0 hbaserecompile 20m 53s HBase recompiled.
+1 💚 compile 1m 15s the patch passed
+1 💚 javac 1m 15s the patch passed
-1 ❌ checkstyle 1m 7s phoenix-core: The patch generated 79 new + 1492 unchanged - 38 fixed = 1571 total (was 1530)
+1 💚 whitespace 0m 0s The patch has no whitespace issues.
+1 💚 javadoc 0m 55s the patch passed
-1 ❌ spotbugs 4m 2s phoenix-core generated 1 new + 959 unchanged - 0 fixed = 960 total (was 959)
_ Other Tests _
-1 ❌ unit 106m 3s phoenix-core in the patch failed.
+1 💚 asflicense 0m 45s The patch does not generate ASF License warnings.
172m 46s
Reason Tests
FindBugs module:phoenix-core
Load of known null value in org.apache.phoenix.compile.FromCompiler$ProjectedTableColumnResolver.resolveColumn(String, String, String) At FromCompiler.java:in org.apache.phoenix.compile.FromCompiler$ProjectedTableColumnResolver.resolveColumn(String, String, String) At FromCompiler.java:[line 1202]
Failed junit tests phoenix.end2end.PermissionNSEnabledWithCustomAccessControllerIT
Subsystem Report/Notes
Docker ClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1133/6/artifact/yetus-general-check/output/Dockerfile
GITHUB PR #1133
Optional Tests dupname asflicense javac javadoc unit spotbugs hbaserebuild hbaseanti checkstyle compile
uname Linux cc79d988911c 4.15.0-60-generic #67-Ubuntu SMP Thu Aug 22 16:55:30 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev/phoenix-personality.sh
git revision master / 34113c5
Default Java Private Build-1.8.0_242-8u242-b08-0ubuntu3~16.04-b08
checkstyle https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1133/6/artifact/yetus-general-check/output/diff-checkstyle-phoenix-core.txt
spotbugs https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1133/6/artifact/yetus-general-check/output/new-spotbugs-phoenix-core.html
unit https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1133/6/artifact/yetus-general-check/output/patch-unit-phoenix-core.txt
Test Results https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1133/6/testReport/
Max. process+thread count 14366 (vs. ulimit of 30000)
modules C: phoenix-core U: phoenix-core
Console output https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1133/6/console
versions git=2.7.4 maven=3.3.9 spotbugs=4.1.3
Powered by Apache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@stoty
Copy link
Contributor Author

stoty commented Feb 22, 2021

I consider the patch finished now.

Can you check again @gjacoby126 ?

@stoty stoty marked this pull request as draft July 15, 2021 05:31
@stoty
Copy link
Contributor Author

stoty commented Aug 5, 2021

💔 -1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 0m 33s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+1 💚 hbaseanti 0m 0s Patch does not have any anti-patterns.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
+1 💚 test4tests 0m 0s The patch appears to include 1 new or modified test files.
_ master Compile Tests _
+1 💚 mvninstall 21m 46s master passed
+0 hbaserecompile 28m 42s HBase recompiled.
+1 💚 compile 1m 5s master passed
+1 💚 checkstyle 1m 10s master passed
+1 💚 javadoc 0m 55s master passed
+0 🆗 spotbugs 3m 20s phoenix-core in master has 973 extant spotbugs warnings.
_ Patch Compile Tests _
+1 💚 mvninstall 14m 8s the patch passed
+0 hbaserecompile 24m 13s HBase recompiled.
+1 💚 compile 1m 5s the patch passed
+1 💚 javac 1m 5s the patch passed
-1 ❌ checkstyle 1m 8s phoenix-core: The patch generated 65 new + 535 unchanged - 57 fixed = 600 total (was 592)
+1 💚 whitespace 0m 0s The patch has no whitespace issues.
+1 💚 javadoc 0m 56s the patch passed
-1 ❌ spotbugs 3m 35s phoenix-core generated 1 new + 973 unchanged - 0 fixed = 974 total (was 973)
_ Other Tests _
-1 ❌ unit 239m 44s phoenix-core in the patch failed.
+1 💚 asflicense 0m 36s The patch does not generate ASF License warnings.
306m 54s
Reason Tests
FindBugs module:phoenix-core
Load of known null value in org.apache.phoenix.compile.FromCompiler$ProjectedTableColumnResolver.resolveColumn(String, String, String) At FromCompiler.java:in org.apache.phoenix.compile.FromCompiler$ProjectedTableColumnResolver.resolveColumn(String, String, String) At FromCompiler.java:[line 1202]
Failed junit tests phoenix.end2end.index.LocalIndexIT
phoenix.tx.ParameterizedTransactionIT
phoenix.end2end.index.ViewIndexIT
phoenix.end2end.FlappingLocalIndexIT
Subsystem Report/Notes
Docker ClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1133/7/artifact/yetus-general-check/output/Dockerfile
GITHUB PR #1133
Optional Tests dupname asflicense javac javadoc unit spotbugs hbaserebuild hbaseanti checkstyle compile
uname Linux 5ed36aa70a29 4.15.0-136-generic #140-Ubuntu SMP Thu Jan 28 05:20:47 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev/phoenix-personality.sh
git revision master / 025a4af
Default Java Private Build-1.8.0_242-8u242-b08-0ubuntu3~16.04-b08
checkstyle https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1133/7/artifact/yetus-general-check/output/diff-checkstyle-phoenix-core.txt
spotbugs https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1133/7/artifact/yetus-general-check/output/new-spotbugs-phoenix-core.html
unit https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1133/7/artifact/yetus-general-check/output/patch-unit-phoenix-core.txt
Test Results https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1133/7/testReport/
Max. process+thread count 15465 (vs. ulimit of 30000)
modules C: phoenix-core U: phoenix-core
Console output https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1133/7/console
versions git=2.7.4 maven=3.3.9 spotbugs=4.1.3
Powered by Apache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@stoty
Copy link
Contributor Author

stoty commented Aug 5, 2021

💔 -1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 4m 37s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+1 💚 hbaseanti 0m 0s Patch does not have any anti-patterns.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
+1 💚 test4tests 0m 0s The patch appears to include 1 new or modified test files.
_ master Compile Tests _
+1 💚 mvninstall 24m 17s master passed
+0 hbaserecompile 31m 25s HBase recompiled.
+1 💚 compile 1m 8s master passed
+1 💚 checkstyle 1m 10s master passed
+1 💚 javadoc 0m 54s master passed
+0 🆗 spotbugs 3m 20s phoenix-core in master has 973 extant spotbugs warnings.
_ Patch Compile Tests _
+1 💚 mvninstall 14m 40s the patch passed
+0 hbaserecompile 24m 33s HBase recompiled.
+1 💚 compile 1m 3s the patch passed
+1 💚 javac 1m 3s the patch passed
-1 ❌ checkstyle 1m 8s phoenix-core: The patch generated 69 new + 535 unchanged - 57 fixed = 604 total (was 592)
+1 💚 whitespace 0m 0s The patch has no whitespace issues.
+1 💚 javadoc 0m 50s the patch passed
-1 ❌ spotbugs 3m 30s phoenix-core generated 1 new + 973 unchanged - 0 fixed = 974 total (was 973)
_ Other Tests _
-1 ❌ unit 114m 50s phoenix-core in the patch failed.
+1 💚 asflicense 0m 45s The patch does not generate ASF License warnings.
189m 10s
Reason Tests
FindBugs module:phoenix-core
Load of known null value in org.apache.phoenix.compile.FromCompiler$ProjectedTableColumnResolver.resolveColumn(String, String, String) At FromCompiler.java:in org.apache.phoenix.compile.FromCompiler$ProjectedTableColumnResolver.resolveColumn(String, String, String) At FromCompiler.java:[line 1202]
Failed junit tests phoenix.end2end.index.LocalIndexIT
phoenix.end2end.join.HashJoinNoIndexIT
phoenix.end2end.join.SortMergeJoinNoIndexIT
phoenix.end2end.index.ViewIndexIT
phoenix.end2end.join.SortMergeJoinNoSpoolingIT
phoenix.end2end.join.SortMergeJoinLocalIndexIT
phoenix.end2end.join.HashJoinLocalIndexIT
phoenix.end2end.join.HashJoinGlobalIndexIT
phoenix.end2end.join.SortMergeJoinGlobalIndexIT
phoenix.end2end.FlappingLocalIndexIT
Subsystem Report/Notes
Docker ClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1133/8/artifact/yetus-general-check/output/Dockerfile
GITHUB PR #1133
Optional Tests dupname asflicense javac javadoc unit spotbugs hbaserebuild hbaseanti checkstyle compile
uname Linux 689c1fcb6651 4.15.0-136-generic #140-Ubuntu SMP Thu Jan 28 05:20:47 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev/phoenix-personality.sh
git revision master / 025a4af
Default Java Private Build-1.8.0_242-8u242-b08-0ubuntu3~16.04-b08
checkstyle https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1133/8/artifact/yetus-general-check/output/diff-checkstyle-phoenix-core.txt
spotbugs https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1133/8/artifact/yetus-general-check/output/new-spotbugs-phoenix-core.html
unit https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1133/8/artifact/yetus-general-check/output/patch-unit-phoenix-core.txt
Test Results https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1133/8/testReport/
Max. process+thread count 14408 (vs. ulimit of 30000)
modules C: phoenix-core U: phoenix-core
Console output https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1133/8/console
versions git=2.7.4 maven=3.3.9 spotbugs=4.1.3
Powered by Apache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@stoty
Copy link
Contributor Author

stoty commented Aug 31, 2021

Can you please check the finished patch again, @gjacoby126 ?

@stoty stoty marked this pull request as ready for review August 31, 2021 14:29
@stoty
Copy link
Contributor Author

stoty commented Aug 31, 2021

💔 -1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 6m 7s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+1 💚 hbaseanti 0m 0s Patch does not have any anti-patterns.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
+1 💚 test4tests 0m 0s The patch appears to include 1 new or modified test files.
_ master Compile Tests _
+1 💚 mvninstall 21m 47s master passed
+0 hbaserecompile 28m 16s HBase recompiled.
+1 💚 compile 1m 3s master passed
+1 💚 checkstyle 1m 10s master passed
+1 💚 javadoc 0m 53s master passed
+0 🆗 spotbugs 3m 4s phoenix-core in master has 972 extant spotbugs warnings.
_ Patch Compile Tests _
+1 💚 mvninstall 13m 36s the patch passed
+0 hbaserecompile 23m 9s HBase recompiled.
+1 💚 compile 1m 4s the patch passed
+1 💚 javac 1m 4s the patch passed
-1 ❌ checkstyle 1m 10s phoenix-core: The patch generated 46 new + 555 unchanged - 37 fixed = 601 total (was 592)
+1 💚 whitespace 0m 0s The patch has no whitespace issues.
+1 💚 javadoc 0m 50s the patch passed
-1 ❌ spotbugs 3m 20s phoenix-core generated 1 new + 972 unchanged - 0 fixed = 973 total (was 972)
_ Other Tests _
-1 ❌ unit 114m 49s phoenix-core in the patch failed.
+1 💚 asflicense 0m 45s The patch does not generate ASF License warnings.
185m 46s
Reason Tests
FindBugs module:phoenix-core
Load of known null value in org.apache.phoenix.compile.FromCompiler$ProjectedTableColumnResolver.resolveColumn(String, String, String) At FromCompiler.java:in org.apache.phoenix.compile.FromCompiler$ProjectedTableColumnResolver.resolveColumn(String, String, String) At FromCompiler.java:[line 1202]
Failed junit tests phoenix.end2end.PermissionNSEnabledWithCustomAccessControllerIT
Subsystem Report/Notes
Docker ClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1133/9/artifact/yetus-general-check/output/Dockerfile
GITHUB PR #1133
Optional Tests dupname asflicense javac javadoc unit spotbugs hbaserebuild hbaseanti checkstyle compile
uname Linux eaa3cd1fb3da 4.15.0-136-generic #140-Ubuntu SMP Thu Jan 28 05:20:47 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev/phoenix-personality.sh
git revision master / 67cef07
Default Java Private Build-1.8.0_242-8u242-b08-0ubuntu3~16.04-b08
checkstyle https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1133/9/artifact/yetus-general-check/output/diff-checkstyle-phoenix-core.txt
spotbugs https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1133/9/artifact/yetus-general-check/output/new-spotbugs-phoenix-core.html
unit https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1133/9/artifact/yetus-general-check/output/patch-unit-phoenix-core.txt
Test Results https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1133/9/testReport/
Max. process+thread count 15586 (vs. ulimit of 30000)
modules C: phoenix-core U: phoenix-core
Console output https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1133/9/console
versions git=2.7.4 maven=3.3.9 spotbugs=4.1.3
Powered by Apache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@virajjasani
Copy link
Contributor

Adding @kadirozde as well.

Copy link
Contributor

@virajjasani virajjasani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left some comments and a couple of questions on local index handling part. Thanks @stoty, this is indeed nice work.

@@ -226,6 +226,7 @@ private static void projectAllIndexColumns(StatementContext context, TableRef ta
String indexColName = IndexUtil.getIndexColumnName(tableColumn);
PColumn indexColumn = null;
ColumnRef ref = null;
boolean localIndexResolved = true;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be false? Otherwise, this logic in catch block will never be true:

        if(!localIndexResolved) {
            throw e;
        }

Copy link
Contributor Author

@stoty stoty Sep 6, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We want to swallow the exception when we have just created a new LocalIndexDataColumnRef column, as the current resolver won't recogise it.
We only want to throw an exception if we didn't create a new LocalIndexDataColumnRef, and the resolver fails for some other reason.
(That may be a non-existing case, but I wanted to make sure that I don't change the existing behaviour.)

@@ -298,6 +306,7 @@ private static void projectIndexColumnFamily(StatementContext context, String cf
PColumn indexColumn = null;
ColumnRef ref = null;
String indexColumnFamily = null;
boolean localIndexResolved = true;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as above?

@@ -701,8 +723,7 @@ public Void visit(ProjectedColumnExpression expression) {
indexProjectedColumns.add(expression);
PColumn col = expression.getColumn();
// hack'ish... For covered columns with local indexes we defer to the server.
if (col instanceof ProjectedColumn && ((ProjectedColumn) col)
.getSourceColumnRef() instanceof LocalIndexDataColumnRef) {
if (context.getDataColumns().contains(col)) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please explain this change? I am not sure about this one.

Copy link
Contributor Author

@stoty stoty Sep 6, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Both the old and the new code checks wheter the column will be added from the base table by the coprocessor.

The old resolver returns a ProjectedColumn to a LocalIndexDataColumnRef, but the new resolver simply returns the projected column, so the logic wouldn't fire.

By checking if the column is in context.getDataColumns(), we check if a LocalIndexDataColumnRef has been created for this column, even if that is unwrapped by the time reach here.

Most of the non-test changes outside FromCompiler are actually compensating for this change in the resolver behaviour.

I wonder if there is a better way to change the resolver, so that we can get by with less changes to the code outside FromComplier.

@stoty
Copy link
Contributor Author

stoty commented Sep 7, 2021

Some more analysis on possible alternative ways to solve this problem:
(I think that the current patch is still correct, if not the most elegant way to do it)

The pre-patch resolver will always (at least in every case in the tests) will (incorrectly) include the data table, and will return the ProjectedColumn object that was generated when projecting the table.

With the current patch, the resolver will not consider the data table in some cases, and the Column object will be re-generated by ColumnRef, and will be a straight PColumnImpl instance.

The problematic columns are the wildcard columns in tables that are rewiritten to their local index tables, and need to be joined from the Base Data table by the coprocessor.

@stoty
Copy link
Contributor Author

stoty commented Sep 7, 2021

💔 -1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 4m 16s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+1 💚 hbaseanti 0m 0s Patch does not have any anti-patterns.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
+1 💚 test4tests 0m 0s The patch appears to include 1 new or modified test files.
_ master Compile Tests _
+1 💚 mvninstall 21m 28s master passed
+0 hbaserecompile 27m 58s HBase recompiled.
+1 💚 compile 1m 4s master passed
+1 💚 checkstyle 1m 9s master passed
+1 💚 javadoc 0m 49s master passed
+0 🆗 spotbugs 3m 7s phoenix-core in master has 972 extant spotbugs warnings.
_ Patch Compile Tests _
+1 💚 mvninstall 13m 41s the patch passed
+0 hbaserecompile 23m 12s HBase recompiled.
+1 💚 compile 1m 2s the patch passed
+1 💚 javac 1m 2s the patch passed
-1 ❌ checkstyle 1m 12s phoenix-core: The patch generated 66 new + 528 unchanged - 64 fixed = 594 total (was 592)
+1 💚 whitespace 0m 0s The patch has no whitespace issues.
+1 💚 javadoc 0m 52s the patch passed
-1 ❌ spotbugs 3m 17s phoenix-core generated 1 new + 971 unchanged - 1 fixed = 972 total (was 972)
_ Other Tests _
-1 ❌ unit 115m 57s phoenix-core in the patch failed.
+1 💚 asflicense 0m 37s The patch does not generate ASF License warnings.
184m 33s
Reason Tests
FindBugs module:phoenix-core
Load of known null value in org.apache.phoenix.compile.FromCompiler$ProjectedTableColumnResolver.resolveColumn(String, String, String) At FromCompiler.java:in org.apache.phoenix.compile.FromCompiler$ProjectedTableColumnResolver.resolveColumn(String, String, String) At FromCompiler.java:[line 1155]
Subsystem Report/Notes
Docker ClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1133/10/artifact/yetus-general-check/output/Dockerfile
GITHUB PR #1133
Optional Tests dupname asflicense javac javadoc unit spotbugs hbaserebuild hbaseanti checkstyle compile
uname Linux ac303c354df9 4.15.0-112-generic #113-Ubuntu SMP Thu Jul 9 23:41:39 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev/phoenix-personality.sh
git revision master / 67cef07
Default Java Private Build-1.8.0_242-8u242-b08-0ubuntu3~16.04-b08
checkstyle https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1133/10/artifact/yetus-general-check/output/diff-checkstyle-phoenix-core.txt
spotbugs https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1133/10/artifact/yetus-general-check/output/new-spotbugs-phoenix-core.html
unit https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1133/10/artifact/yetus-general-check/output/patch-unit-phoenix-core.txt
Test Results https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1133/10/testReport/
Max. process+thread count 14601 (vs. ulimit of 30000)
modules C: phoenix-core U: phoenix-core
Console output https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1133/10/console
versions git=2.7.4 maven=3.3.9 spotbugs=4.1.3
Powered by Apache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants