Skip to content

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

Open
stoty wants to merge 3 commits into
apache:masterfrom
stoty:PHOENIX-6365
Open

PHOENIX-6365 Bogus AmbiguousTableException in query with aliases on l…#1133
stoty wants to merge 3 commits into
apache:masterfrom
stoty:PHOENIX-6365

Conversation

@stoty

@stotystoty commented Feb 5, 2021

Copy link
Copy Markdown
Contributor

…ocal indexed tables

TableRef tableRef = createTableRef(connectionSchemaName, tableNode, true, false);
PTable theTable = tableRef.getTable();

String name = theTable.getName().getString();

Copy link
Copy Markdown
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
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

Done.

@stoty

stoty commented Feb 5, 2021

Copy link
Copy Markdown
ContributorAuthor

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

stoty commented Feb 5, 2021

Copy link
Copy Markdown
ContributorAuthor

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec4m 27sDocker mode activated.
_ Prechecks _
+1 💚dupname0m 0sNo case conflicting files found.
+1 💚hbaseanti0m 0sPatch does not have any anti-patterns.
+1 💚@author0m 0sThe patch does not contain any @author tags.
+1 💚test4tests0m 0sThe patch appears to include 1 new or modified test files.
_ master Compile Tests _
+1 💚mvninstall15m 27smaster passed
+0hbaserecompile21m 52sHBase recompiled.
+1 💚compile1m 1smaster passed
+1 💚checkstyle0m 41smaster passed
+1 💚javadoc0m 51smaster passed
+0 🆗spotbugs3m 27sphoenix-core in master has 959 extant spotbugs warnings.
_ Patch Compile Tests _
+1 💚mvninstall11m 44sthe patch passed
+0hbaserecompile24m 4sHBase recompiled.
+1 💚compile1m 26sthe patch passed
+1 💚javac1m 26sthe patch passed
+1 💚checkstyle0m 45sthe patch passed
+1 💚whitespace0m 0sThe patch has no whitespace issues.
+1 💚javadoc1m 1sthe patch passed
+1 💚spotbugs4m 30sthe patch passed
_ Other Tests _
-1 ❌unit113m 42sphoenix-core in the patch failed.
+1 💚asflicense0m 37sThe patch does not generate ASF License warnings.
178m 13s
ReasonTests
Failed junit testsphoenix.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
SubsystemReport/Notes
DockerClientAPI=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 Testsdupname asflicense javac javadoc unit spotbugs hbaserebuild hbaseanti checkstyle compile
unameLinux 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 toolmaven
Personalitydev/phoenix-personality.sh
git revisionmaster / d6672f4
Default JavaPrivate Build-1.8.0_242-8u242-b08-0ubuntu3~16.04-b08
unithttps://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 Resultshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1133/1/testReport/
Max. process+thread count12496 (vs. ulimit of 30000)
modulesC: phoenix-core U: phoenix-core
Console outputhttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1133/1/console
versionsgit=2.7.4 maven=3.3.9 spotbugs=4.1.3
Powered byApache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@stoty

stoty commented Feb 5, 2021

Copy link
Copy Markdown
ContributorAuthor

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec0m 36sDocker mode activated.
_ Prechecks _
+1 💚dupname0m 0sNo case conflicting files found.
+1 💚hbaseanti0m 0sPatch does not have any anti-patterns.
+1 💚@author0m 0sThe patch does not contain any @author tags.
+1 💚test4tests0m 0sThe patch appears to include 1 new or modified test files.
_ master Compile Tests _
+1 💚mvninstall18m 8smaster passed
+0hbaserecompile25m 19sHBase recompiled.
+1 💚compile0m 59smaster passed
+1 💚checkstyle0m 44smaster passed
+1 💚javadoc0m 51smaster passed
+0 🆗spotbugs3m 4sphoenix-core in master has 959 extant spotbugs warnings.
_ Patch Compile Tests _
+1 💚mvninstall8m 2sthe patch passed
+0hbaserecompile17m 37sHBase recompiled.
+1 💚compile1m 5sthe patch passed
+1 💚javac1m 5sthe patch passed
-1 ❌checkstyle0m 46sphoenix-core: The patch generated 12 new + 554 unchanged - 9 fixed = 566 total (was 563)
+1 💚whitespace0m 0sThe patch has no whitespace issues.
+1 💚javadoc0m 53sthe patch passed
+1 💚spotbugs3m 16sthe patch passed
_ Other Tests _
-1 ❌unit104m 45sphoenix-core in the patch failed.
+1 💚asflicense0m 44sThe patch does not generate ASF License warnings.
160m 40s
ReasonTests
Failed junit testsphoenix.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
SubsystemReport/Notes
DockerClientAPI=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 Testsdupname asflicense javac javadoc unit spotbugs hbaserebuild hbaseanti checkstyle compile
unameLinux 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 toolmaven
Personalitydev/phoenix-personality.sh
git revisionmaster / d6672f4
Default JavaPrivate Build-1.8.0_242-8u242-b08-0ubuntu3~16.04-b08
checkstylehttps://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
unithttps://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 Resultshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1133/2/testReport/
Max. process+thread count13655 (vs. ulimit of 30000)
modulesC: phoenix-core U: phoenix-core
Console outputhttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1133/2/console
versionsgit=2.7.4 maven=3.3.9 spotbugs=4.1.3
Powered byApache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@stoty

stoty commented Feb 7, 2021

Copy link
Copy Markdown
ContributorAuthor

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

@stoty

stoty commented Feb 7, 2021

Copy link
Copy Markdown
ContributorAuthor

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec1m 20sDocker mode activated.
_ Prechecks _
+1 💚dupname0m 0sNo case conflicting files found.
+1 💚hbaseanti0m 0sPatch does not have any anti-patterns.
+1 💚@author0m 0sThe patch does not contain any @author tags.
+1 💚test4tests0m 0sThe patch appears to include 1 new or modified test files.
_ master Compile Tests _
+1 💚mvninstall16m 42smaster passed
+0hbaserecompile23m 48sHBase recompiled.
+1 💚compile1m 5smaster passed
+1 💚checkstyle0m 40smaster passed
+1 💚javadoc0m 53smaster passed
+0 🆗spotbugs3m 17sphoenix-core in master has 959 extant spotbugs warnings.
_ Patch Compile Tests _
+1 💚mvninstall9m 53sthe patch passed
+0hbaserecompile20m 6sHBase recompiled.
+1 💚compile1m 7sthe patch passed
+1 💚javac1m 7sthe patch passed
-1 ❌checkstyle0m 41sphoenix-core: The patch generated 12 new + 554 unchanged - 9 fixed = 566 total (was 563)
+1 💚whitespace0m 0sThe patch has no whitespace issues.
+1 💚javadoc0m 51sthe patch passed
+1 💚spotbugs3m 30sthe patch passed
_ Other Tests _
-1 ❌unit1m 46sphoenix-core in the patch failed.
+1 💚asflicense0m 13sThe patch does not generate ASF License warnings.
57m 39s
ReasonTests
Failed junit testsphoenix.compile.QueryCompilerTest
SubsystemReport/Notes
DockerClientAPI=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 Testsdupname asflicense javac javadoc unit spotbugs hbaserebuild hbaseanti checkstyle compile
unameLinux 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 toolmaven
Personalitydev/phoenix-personality.sh
git revisionmaster / d6672f4
Default JavaPrivate Build-1.8.0_242-8u242-b08-0ubuntu3~16.04-b08
checkstylehttps://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
unithttps://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 Resultshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1133/3/testReport/
Max. process+thread count494 (vs. ulimit of 30000)
modulesC: phoenix-core U: phoenix-core
Console outputhttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1133/3/console
versionsgit=2.7.4 maven=3.3.9 spotbugs=4.1.3
Powered byApache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@stoty

stoty commented Feb 7, 2021

Copy link
Copy Markdown
ContributorAuthor

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec0m 36sDocker mode activated.
_ Prechecks _
+1 💚dupname0m 1sNo case conflicting files found.
+1 💚hbaseanti0m 0sPatch does not have any anti-patterns.
+1 💚@author0m 0sThe patch does not contain any @author tags.
+1 💚test4tests0m 0sThe patch appears to include 1 new or modified test files.
_ master Compile Tests _
+1 💚mvninstall16m 53smaster passed
+0hbaserecompile24m 18sHBase recompiled.
+1 💚compile1m 9smaster passed
+1 💚checkstyle0m 48smaster passed
+1 💚javadoc0m 56smaster passed
+0 🆗spotbugs3m 28sphoenix-core in master has 959 extant spotbugs warnings.
_ Patch Compile Tests _
+1 💚mvninstall9m 14sthe patch passed
+0hbaserecompile19m 49sHBase recompiled.
+1 💚compile1m 5sthe patch passed
+1 💚javac1m 5sthe patch passed
-1 ❌checkstyle0m 45sphoenix-core: The patch generated 3 new + 563 unchanged - 0 fixed = 566 total (was 563)
+1 💚whitespace0m 0sThe patch has no whitespace issues.
+1 💚javadoc0m 51sthe patch passed
+1 💚spotbugs3m 34sthe patch passed
_ Other Tests _
-1 ❌unit1m 47sphoenix-core in the patch failed.
+1 💚asflicense0m 17sThe patch does not generate ASF License warnings.
57m 41s
ReasonTests
Failed junit testsphoenix.compile.QueryCompilerTest
SubsystemReport/Notes
DockerClientAPI=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 Testsdupname asflicense javac javadoc unit spotbugs hbaserebuild hbaseanti checkstyle compile
unameLinux 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 toolmaven
Personalitydev/phoenix-personality.sh
git revisionmaster / d6672f4
Default JavaPrivate Build-1.8.0_242-8u242-b08-0ubuntu3~16.04-b08
checkstylehttps://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
unithttps://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 Resultshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1133/1/testReport/
Max. process+thread count457 (vs. ulimit of 30000)
modulesC: phoenix-core U: phoenix-core
Console outputhttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1133/1/console
versionsgit=2.7.4 maven=3.3.9 spotbugs=4.1.3
Powered byApache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@stoty

stoty commented Feb 9, 2021

Copy link
Copy Markdown
ContributorAuthor

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec0m 35sDocker mode activated.
_ Prechecks _
+1 💚dupname0m 0sNo case conflicting files found.
+1 💚hbaseanti0m 0sPatch does not have any anti-patterns.
+1 💚@author0m 0sThe patch does not contain any @author tags.
+1 💚test4tests0m 0sThe patch appears to include 1 new or modified test files.
_ master Compile Tests _
+1 💚mvninstall16m 2smaster passed
+0hbaserecompile23m 14sHBase recompiled.
+1 💚compile1m 7smaster passed
+1 💚checkstyle0m 53smaster passed
+1 💚javadoc0m 54smaster passed
+0 🆗spotbugs3m 6sphoenix-core in master has 959 extant spotbugs warnings.
_ Patch Compile Tests _
+1 💚mvninstall8m 48sthe patch passed
+0hbaserecompile19m 19sHBase recompiled.
+1 💚compile1m 4sthe patch passed
+1 💚javac1m 4sthe patch passed
-1 ❌checkstyle0m 54sphoenix-core: The patch generated 25 new + 897 unchanged - 9 fixed = 922 total (was 906)
+1 💚whitespace0m 0sThe patch has no whitespace issues.
+1 💚javadoc0m 52sthe patch passed
+1 💚spotbugs3m 24sthe patch passed
_ Other Tests _
-1 ❌unit106m 47sphoenix-core in the patch failed.
+1 💚asflicense0m 45sThe patch does not generate ASF License warnings.
163m 2s
ReasonTests
Failed junit testsphoenix.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
SubsystemReport/Notes
DockerClientAPI=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 Testsdupname asflicense javac javadoc unit spotbugs hbaserebuild hbaseanti checkstyle compile
unameLinux 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 toolmaven
Personalitydev/phoenix-personality.sh
git revisionmaster / 1389fa2
Default JavaPrivate Build-1.8.0_242-8u242-b08-0ubuntu3~16.04-b08
checkstylehttps://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
unithttps://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 Resultshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1133/2/testReport/
Max. process+thread count13674 (vs. ulimit of 30000)
modulesC: phoenix-core U: phoenix-core
Console outputhttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1133/2/console
versionsgit=2.7.4 maven=3.3.9 spotbugs=4.1.3
Powered byApache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@stoty

stoty commented Feb 9, 2021

Copy link
Copy Markdown
ContributorAuthor

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec0m 31sDocker mode activated.
_ Prechecks _
+1 💚dupname0m 0sNo case conflicting files found.
+1 💚hbaseanti0m 0sPatch does not have any anti-patterns.
+1 💚@author0m 0sThe patch does not contain any @author tags.
+1 💚test4tests0m 0sThe patch appears to include 1 new or modified test files.
_ master Compile Tests _
+1 💚mvninstall15m 57smaster passed
+0hbaserecompile23m 12sHBase recompiled.
+1 💚compile1m 7smaster passed
+1 💚checkstyle1m 4smaster passed
+1 💚javadoc0m 55smaster passed
+0 🆗spotbugs3m 18sphoenix-core in master has 959 extant spotbugs warnings.
_ Patch Compile Tests _
+1 💚mvninstall8m 24sthe patch passed
+0hbaserecompile18m 31sHBase recompiled.
+1 💚compile1m 6sthe patch passed
+1 💚javac1m 6sthe patch passed
-1 ❌checkstyle1m 10sphoenix-core: The patch generated 47 new + 1426 unchanged - 31 fixed = 1473 total (was 1457)
+1 💚whitespace0m 0sThe patch has no whitespace issues.
+1 💚javadoc0m 56sthe patch passed
+1 💚spotbugs3m 38sthe patch passed
_ Other Tests _
-1 ❌unit103m 48sphoenix-core in the patch failed.
+1 💚asflicense0m 46sThe patch does not generate ASF License warnings.
160m 3s
ReasonTests
Failed junit testsphoenix.end2end.index.MutableIndexIT
SubsystemReport/Notes
DockerClientAPI=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 Testsdupname asflicense javac javadoc unit spotbugs hbaserebuild hbaseanti checkstyle compile
unameLinux 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 toolmaven
Personalitydev/phoenix-personality.sh
git revisionmaster / 1389fa2
Default JavaPrivate Build-1.8.0_242-8u242-b08-0ubuntu3~16.04-b08
checkstylehttps://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
unithttps://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 Resultshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1133/3/testReport/
Max. process+thread count14497 (vs. ulimit of 30000)
modulesC: phoenix-core U: phoenix-core
Console outputhttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1133/3/console
versionsgit=2.7.4 maven=3.3.9 spotbugs=4.1.3
Powered byApache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@stoty

Copy link
Copy Markdown
ContributorAuthor

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec0m 30sDocker mode activated.
_ Prechecks _
+1 💚dupname0m 1sNo case conflicting files found.
+1 💚hbaseanti0m 0sPatch does not have any anti-patterns.
+1 💚@author0m 0sThe patch does not contain any @author tags.
+1 💚test4tests0m 0sThe patch appears to include 1 new or modified test files.
_ master Compile Tests _
+1 💚mvninstall15m 12smaster passed
+0hbaserecompile22m 26sHBase recompiled.
+1 💚compile1m 2smaster passed
+1 💚checkstyle1m 4smaster passed
+1 💚javadoc0m 52smaster passed
+0 🆗spotbugs3m 7sphoenix-core in master has 959 extant spotbugs warnings.
_ Patch Compile Tests _
+1 💚mvninstall8m 9sthe patch passed
+0hbaserecompile18m 14sHBase recompiled.
+1 💚compile1m 3sthe patch passed
+1 💚javac1m 3sthe patch passed
-1 ❌checkstyle1m 10sphoenix-core: The patch generated 63 new + 1452 unchanged - 34 fixed = 1515 total (was 1486)
+1 💚whitespace0m 0sThe patch has no whitespace issues.
+1 💚javadoc0m 50sthe patch passed
+1 💚spotbugs3m 18sthe patch passed
_ Other Tests _
-1 ❌unit103m 3sphoenix-core in the patch failed.
+1 💚asflicense0m 45sThe patch does not generate ASF License warnings.
157m 25s
ReasonTests
Failed junit testsphoenix.end2end.index.MutableIndexIT
SubsystemReport/Notes
DockerClientAPI=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 Testsdupname asflicense javac javadoc unit spotbugs hbaserebuild hbaseanti checkstyle compile
unameLinux 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 toolmaven
Personalitydev/phoenix-personality.sh
git revisionmaster / 9e90779
Default JavaPrivate Build-1.8.0_242-8u242-b08-0ubuntu3~16.04-b08
checkstylehttps://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
unithttps://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 Resultshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1133/4/testReport/
Max. process+thread count14343 (vs. ulimit of 30000)
modulesC: phoenix-core U: phoenix-core
Console outputhttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1133/4/console
versionsgit=2.7.4 maven=3.3.9 spotbugs=4.1.3
Powered byApache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@stoty

Copy link
Copy Markdown
ContributorAuthor

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec0m 29sDocker mode activated.
_ Prechecks _
+1 💚dupname0m 0sNo case conflicting files found.
+1 💚hbaseanti0m 0sPatch does not have any anti-patterns.
+1 💚@author0m 0sThe patch does not contain any @author tags.
+1 💚test4tests0m 0sThe patch appears to include 1 new or modified test files.
_ master Compile Tests _
+1 💚mvninstall14m 56smaster passed
+0hbaserecompile21m 19sHBase recompiled.
+1 💚compile1m 4smaster passed
+1 💚checkstyle1m 7smaster passed
+1 💚javadoc0m 51smaster passed
+0 🆗spotbugs3m 4sphoenix-core in master has 959 extant spotbugs warnings.
_ Patch Compile Tests _
+1 💚mvninstall8m 12sthe patch passed
+0hbaserecompile18m 16sHBase recompiled.
+1 💚compile1m 4sthe patch passed
+1 💚javac1m 4sthe patch passed
-1 ❌checkstyle1m 10sphoenix-core: The patch generated 63 new + 1452 unchanged - 34 fixed = 1515 total (was 1486)
+1 💚whitespace0m 0sThe patch has no whitespace issues.
+1 💚javadoc0m 52sthe patch passed
+1 💚spotbugs3m 11sthe patch passed
_ Other Tests _
-1 ❌unit104m 0sphoenix-core in the patch failed.
+1 💚asflicense0m 44sThe patch does not generate ASF License warnings.
157m 18s
ReasonTests
Failed junit testsphoenix.end2end.index.MutableIndexIT
phoenix.end2end.UpsertSelectIT
SubsystemReport/Notes
DockerClientAPI=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 Testsdupname asflicense javac javadoc unit spotbugs hbaserebuild hbaseanti checkstyle compile
unameLinux 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 toolmaven
Personalitydev/phoenix-personality.sh
git revisionmaster / 9e90779
Default JavaPrivate Build-1.8.0_242-8u242-b08-0ubuntu3~16.04-b08
checkstylehttps://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
unithttps://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 Resultshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1133/5/testReport/
Max. process+thread count13096 (vs. ulimit of 30000)
modulesC: phoenix-core U: phoenix-core
Console outputhttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1133/5/console
versionsgit=2.7.4 maven=3.3.9 spotbugs=4.1.3
Powered byApache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@stoty

Copy link
Copy Markdown
ContributorAuthor

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec5m 42sDocker mode activated.
_ Prechecks _
+1 💚dupname0m 0sNo case conflicting files found.
+1 💚hbaseanti0m 0sPatch does not have any anti-patterns.
+1 💚@author0m 1sThe patch does not contain any @author tags.
+1 💚test4tests0m 0sThe patch appears to include 1 new or modified test files.
_ master Compile Tests _
+1 💚mvninstall17m 50smaster passed
+0hbaserecompile25m 30sHBase recompiled.
+1 💚compile1m 9smaster passed
+1 💚checkstyle1m 7smaster passed
+1 💚javadoc0m 59smaster passed
+0 🆗spotbugs3m 47sphoenix-core in master has 959 extant spotbugs warnings.
_ Patch Compile Tests _
+1 💚mvninstall9m 42sthe patch passed
+0hbaserecompile20m 53sHBase recompiled.
+1 💚compile1m 15sthe patch passed
+1 💚javac1m 15sthe patch passed
-1 ❌checkstyle1m 7sphoenix-core: The patch generated 79 new + 1492 unchanged - 38 fixed = 1571 total (was 1530)
+1 💚whitespace0m 0sThe patch has no whitespace issues.
+1 💚javadoc0m 55sthe patch passed
-1 ❌spotbugs4m 2sphoenix-core generated 1 new + 959 unchanged - 0 fixed = 960 total (was 959)
_ Other Tests _
-1 ❌unit106m 3sphoenix-core in the patch failed.
+1 💚asflicense0m 45sThe patch does not generate ASF License warnings.
172m 46s
ReasonTests
FindBugsmodule: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 testsphoenix.end2end.PermissionNSEnabledWithCustomAccessControllerIT
SubsystemReport/Notes
DockerClientAPI=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 Testsdupname asflicense javac javadoc unit spotbugs hbaserebuild hbaseanti checkstyle compile
unameLinux 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 toolmaven
Personalitydev/phoenix-personality.sh
git revisionmaster / 34113c5
Default JavaPrivate Build-1.8.0_242-8u242-b08-0ubuntu3~16.04-b08
checkstylehttps://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
spotbugshttps://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
unithttps://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 Resultshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1133/6/testReport/
Max. process+thread count14366 (vs. ulimit of 30000)
modulesC: phoenix-core U: phoenix-core
Console outputhttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1133/6/console
versionsgit=2.7.4 maven=3.3.9 spotbugs=4.1.3
Powered byApache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@stoty

Copy link
Copy Markdown
ContributorAuthor

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

stoty commented Aug 5, 2021

Copy link
Copy Markdown
ContributorAuthor

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec0m 33sDocker mode activated.
_ Prechecks _
+1 💚dupname0m 0sNo case conflicting files found.
+1 💚hbaseanti0m 0sPatch does not have any anti-patterns.
+1 💚@author0m 0sThe patch does not contain any @author tags.
+1 💚test4tests0m 0sThe patch appears to include 1 new or modified test files.
_ master Compile Tests _
+1 💚mvninstall21m 46smaster passed
+0hbaserecompile28m 42sHBase recompiled.
+1 💚compile1m 5smaster passed
+1 💚checkstyle1m 10smaster passed
+1 💚javadoc0m 55smaster passed
+0 🆗spotbugs3m 20sphoenix-core in master has 973 extant spotbugs warnings.
_ Patch Compile Tests _
+1 💚mvninstall14m 8sthe patch passed
+0hbaserecompile24m 13sHBase recompiled.
+1 💚compile1m 5sthe patch passed
+1 💚javac1m 5sthe patch passed
-1 ❌checkstyle1m 8sphoenix-core: The patch generated 65 new + 535 unchanged - 57 fixed = 600 total (was 592)
+1 💚whitespace0m 0sThe patch has no whitespace issues.
+1 💚javadoc0m 56sthe patch passed
-1 ❌spotbugs3m 35sphoenix-core generated 1 new + 973 unchanged - 0 fixed = 974 total (was 973)
_ Other Tests _
-1 ❌unit239m 44sphoenix-core in the patch failed.
+1 💚asflicense0m 36sThe patch does not generate ASF License warnings.
306m 54s
ReasonTests
FindBugsmodule: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 testsphoenix.end2end.index.LocalIndexIT
phoenix.tx.ParameterizedTransactionIT
phoenix.end2end.index.ViewIndexIT
phoenix.end2end.FlappingLocalIndexIT
SubsystemReport/Notes
DockerClientAPI=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 Testsdupname asflicense javac javadoc unit spotbugs hbaserebuild hbaseanti checkstyle compile
unameLinux 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 toolmaven
Personalitydev/phoenix-personality.sh
git revisionmaster / 025a4af
Default JavaPrivate Build-1.8.0_242-8u242-b08-0ubuntu3~16.04-b08
checkstylehttps://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
spotbugshttps://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
unithttps://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 Resultshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1133/7/testReport/
Max. process+thread count15465 (vs. ulimit of 30000)
modulesC: phoenix-core U: phoenix-core
Console outputhttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1133/7/console
versionsgit=2.7.4 maven=3.3.9 spotbugs=4.1.3
Powered byApache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@stoty

stoty commented Aug 5, 2021

Copy link
Copy Markdown
ContributorAuthor

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec4m 37sDocker mode activated.
_ Prechecks _
+1 💚dupname0m 0sNo case conflicting files found.
+1 💚hbaseanti0m 0sPatch does not have any anti-patterns.
+1 💚@author0m 0sThe patch does not contain any @author tags.
+1 💚test4tests0m 0sThe patch appears to include 1 new or modified test files.
_ master Compile Tests _
+1 💚mvninstall24m 17smaster passed
+0hbaserecompile31m 25sHBase recompiled.
+1 💚compile1m 8smaster passed
+1 💚checkstyle1m 10smaster passed
+1 💚javadoc0m 54smaster passed
+0 🆗spotbugs3m 20sphoenix-core in master has 973 extant spotbugs warnings.
_ Patch Compile Tests _
+1 💚mvninstall14m 40sthe patch passed
+0hbaserecompile24m 33sHBase recompiled.
+1 💚compile1m 3sthe patch passed
+1 💚javac1m 3sthe patch passed
-1 ❌checkstyle1m 8sphoenix-core: The patch generated 69 new + 535 unchanged - 57 fixed = 604 total (was 592)
+1 💚whitespace0m 0sThe patch has no whitespace issues.
+1 💚javadoc0m 50sthe patch passed
-1 ❌spotbugs3m 30sphoenix-core generated 1 new + 973 unchanged - 0 fixed = 974 total (was 973)
_ Other Tests _
-1 ❌unit114m 50sphoenix-core in the patch failed.
+1 💚asflicense0m 45sThe patch does not generate ASF License warnings.
189m 10s
ReasonTests
FindBugsmodule: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 testsphoenix.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
SubsystemReport/Notes
DockerClientAPI=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 Testsdupname asflicense javac javadoc unit spotbugs hbaserebuild hbaseanti checkstyle compile
unameLinux 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 toolmaven
Personalitydev/phoenix-personality.sh
git revisionmaster / 025a4af
Default JavaPrivate Build-1.8.0_242-8u242-b08-0ubuntu3~16.04-b08
checkstylehttps://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
spotbugshttps://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
unithttps://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 Resultshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1133/8/testReport/
Max. process+thread count14408 (vs. ulimit of 30000)
modulesC: phoenix-core U: phoenix-core
Console outputhttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1133/8/console
versionsgit=2.7.4 maven=3.3.9 spotbugs=4.1.3
Powered byApache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@stoty

Copy link
Copy Markdown
ContributorAuthor

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
Copy Markdown
ContributorAuthor

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec6m 7sDocker mode activated.
_ Prechecks _
+1 💚dupname0m 0sNo case conflicting files found.
+1 💚hbaseanti0m 0sPatch does not have any anti-patterns.
+1 💚@author0m 0sThe patch does not contain any @author tags.
+1 💚test4tests0m 0sThe patch appears to include 1 new or modified test files.
_ master Compile Tests _
+1 💚mvninstall21m 47smaster passed
+0hbaserecompile28m 16sHBase recompiled.
+1 💚compile1m 3smaster passed
+1 💚checkstyle1m 10smaster passed
+1 💚javadoc0m 53smaster passed
+0 🆗spotbugs3m 4sphoenix-core in master has 972 extant spotbugs warnings.
_ Patch Compile Tests _
+1 💚mvninstall13m 36sthe patch passed
+0hbaserecompile23m 9sHBase recompiled.
+1 💚compile1m 4sthe patch passed
+1 💚javac1m 4sthe patch passed
-1 ❌checkstyle1m 10sphoenix-core: The patch generated 46 new + 555 unchanged - 37 fixed = 601 total (was 592)
+1 💚whitespace0m 0sThe patch has no whitespace issues.
+1 💚javadoc0m 50sthe patch passed
-1 ❌spotbugs3m 20sphoenix-core generated 1 new + 972 unchanged - 0 fixed = 973 total (was 972)
_ Other Tests _
-1 ❌unit114m 49sphoenix-core in the patch failed.
+1 💚asflicense0m 45sThe patch does not generate ASF License warnings.
185m 46s
ReasonTests
FindBugsmodule: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 testsphoenix.end2end.PermissionNSEnabledWithCustomAccessControllerIT
SubsystemReport/Notes
DockerClientAPI=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 Testsdupname asflicense javac javadoc unit spotbugs hbaserebuild hbaseanti checkstyle compile
unameLinux 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 toolmaven
Personalitydev/phoenix-personality.sh
git revisionmaster / 67cef07
Default JavaPrivate Build-1.8.0_242-8u242-b08-0ubuntu3~16.04-b08
checkstylehttps://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
spotbugshttps://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
unithttps://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 Resultshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1133/9/testReport/
Max. process+thread count15586 (vs. ulimit of 30000)
modulesC: phoenix-core U: phoenix-core
Console outputhttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1133/9/console
versionsgit=2.7.4 maven=3.3.9 spotbugs=4.1.3
Powered byApache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@virajjasani

Copy link
Copy Markdown
Contributor

Adding @kadirozde as well.

@virajjasanivirajjasani left a comment

Copy link
Copy Markdown
Contributor

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.

Comment threadphoenix-core/src/main/java/org/apache/phoenix/compile/FromCompiler.java Outdated
Comment threadphoenix-core/src/main/java/org/apache/phoenix/compile/FromCompiler.java Outdated
Comment threadphoenix-core/src/main/java/org/apache/phoenix/compile/FromCompiler.java Outdated
Comment threadphoenix-core/src/main/java/org/apache/phoenix/compile/FromCompiler.java Outdated
String indexColName = IndexUtil.getIndexColumnName(tableColumn);
PColumn indexColumn = null;
ColumnRef ref = null;
boolean localIndexResolved = true;

Copy link
Copy Markdown
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;
}

@stotystotySep 6, 2021

Copy link
Copy Markdown
ContributorAuthor

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.)

PColumn indexColumn = null;
ColumnRef ref = null;
String indexColumnFamily = null;
boolean localIndexResolved = true;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

same as above?

// 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
Copy Markdown
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.

@stotystotySep 6, 2021

Copy link
Copy Markdown
ContributorAuthor

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

stoty commented Sep 7, 2021

Copy link
Copy Markdown
ContributorAuthor

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

stoty commented Sep 7, 2021

Copy link
Copy Markdown
ContributorAuthor

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec4m 16sDocker mode activated.
_ Prechecks _
+1 💚dupname0m 0sNo case conflicting files found.
+1 💚hbaseanti0m 0sPatch does not have any anti-patterns.
+1 💚@author0m 0sThe patch does not contain any @author tags.
+1 💚test4tests0m 0sThe patch appears to include 1 new or modified test files.
_ master Compile Tests _
+1 💚mvninstall21m 28smaster passed
+0hbaserecompile27m 58sHBase recompiled.
+1 💚compile1m 4smaster passed
+1 💚checkstyle1m 9smaster passed
+1 💚javadoc0m 49smaster passed
+0 🆗spotbugs3m 7sphoenix-core in master has 972 extant spotbugs warnings.
_ Patch Compile Tests _
+1 💚mvninstall13m 41sthe patch passed
+0hbaserecompile23m 12sHBase recompiled.
+1 💚compile1m 2sthe patch passed
+1 💚javac1m 2sthe patch passed
-1 ❌checkstyle1m 12sphoenix-core: The patch generated 66 new + 528 unchanged - 64 fixed = 594 total (was 592)
+1 💚whitespace0m 0sThe patch has no whitespace issues.
+1 💚javadoc0m 52sthe patch passed
-1 ❌spotbugs3m 17sphoenix-core generated 1 new + 971 unchanged - 1 fixed = 972 total (was 972)
_ Other Tests _
-1 ❌unit115m 57sphoenix-core in the patch failed.
+1 💚asflicense0m 37sThe patch does not generate ASF License warnings.
184m 33s
ReasonTests
FindBugsmodule: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]
SubsystemReport/Notes
DockerClientAPI=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 Testsdupname asflicense javac javadoc unit spotbugs hbaserebuild hbaseanti checkstyle compile
unameLinux 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 toolmaven
Personalitydev/phoenix-personality.sh
git revisionmaster / 67cef07
Default JavaPrivate Build-1.8.0_242-8u242-b08-0ubuntu3~16.04-b08
checkstylehttps://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
spotbugshttps://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
unithttps://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 Resultshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1133/10/testReport/
Max. process+thread count14601 (vs. ulimit of 30000)
modulesC: phoenix-core U: phoenix-core
Console outputhttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1133/10/console
versionsgit=2.7.4 maven=3.3.9 spotbugs=4.1.3
Powered byApache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@stoty@virajjasani@gjacoby126