-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Use Classloader safe implementation of RecordSetProvider for Phoenix #9942
Use Classloader safe implementation of RecordSetProvider for Phoenix #9942
Conversation
testing/trino-product-tests/src/main/java/io/trino/tests/product/phoenix/TestPhoenix.java
Outdated
Show resolved
Hide resolved
...cher/src/main/java/io/trino/tests/product/launcher/env/environment/EnvMultinodePhoenix5.java
Outdated
Show resolved
Hide resolved
...cher/src/main/java/io/trino/tests/product/launcher/env/environment/EnvMultinodePhoenix5.java
Outdated
Show resolved
Hide resolved
import static org.testcontainers.utility.MountableFile.forHostPath; | ||
|
||
@TestsEnvironment | ||
public final class EnvMultinodePhoenix5 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like a copy paste of EnvMultinodePhoenix4
, can you please try to extract common EnvironmentExtender
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please don't use inheritance. Use EnvironmentExtender
and org.testcontainers.containers.GenericContainer#setDockerImageName
. By default you can use 5 and in one environment you can update it to 4.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have applied the comments.
c96e383
to
461d59e
Compare
@kokosing AC |
b3c7708
to
d74e95d
Compare
d74e95d
to
46e521b
Compare
@kokosing PTAL. |
...cher/src/main/java/io/trino/tests/product/launcher/env/environment/EnvMultinodePhoenix5.java
Outdated
Show resolved
Hide resolved
public void testCreateTableAsSelect() | ||
{ | ||
String tableName = "phoenix.default.nation"; | ||
QueryResult result = onTrino().executeQuery(format("CREATE TABLE %s AS SELECT * FROM tpch.tiny.nation", tableName)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we use some generic set of tests? Where you could set schema and catalog in tempto-configration.yaml
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have partially applied this comment.
46e521b
to
a45ae7b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
% nits
...product-tests-launcher/src/main/java/io/trino/tests/product/launcher/env/common/Phoenix.java
Outdated
Show resolved
Hide resolved
...cher/src/main/java/io/trino/tests/product/launcher/env/environment/EnvMultinodePhoenix4.java
Outdated
Show resolved
Hide resolved
a45ae7b
to
578a560
Compare
578a560
to
f7bcb4b
Compare
Fixes #9151