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

Use Classloader safe implementation of RecordSetProvider for Phoenix #9942

Merged

Conversation

Praveen2112
Copy link
Member

@Praveen2112 Praveen2112 commented Nov 11, 2021

Fixes #9151

import static org.testcontainers.utility.MountableFile.forHostPath;

@TestsEnvironment
public final class EnvMultinodePhoenix5
Copy link
Member

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

Copy link
Member

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.

Copy link
Member Author

Choose a reason for hiding this comment

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

Have applied the comments.

@Praveen2112 Praveen2112 force-pushed the praveen/phoenix_classloader_issue branch from c96e383 to 461d59e Compare November 15, 2021 06:13
@Praveen2112
Copy link
Member Author

@kokosing AC

@Praveen2112 Praveen2112 force-pushed the praveen/phoenix_classloader_issue branch 3 times, most recently from b3c7708 to d74e95d Compare November 16, 2021 13:21
@Praveen2112 Praveen2112 requested a review from kokosing November 17, 2021 11:35
@Praveen2112 Praveen2112 force-pushed the praveen/phoenix_classloader_issue branch from d74e95d to 46e521b Compare November 17, 2021 13:44
@Praveen2112
Copy link
Member Author

@kokosing PTAL.

public void testCreateTableAsSelect()
{
String tableName = "phoenix.default.nation";
QueryResult result = onTrino().executeQuery(format("CREATE TABLE %s AS SELECT * FROM tpch.tiny.nation", tableName));
Copy link
Member

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.

Copy link
Member Author

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.

@Praveen2112 Praveen2112 force-pushed the praveen/phoenix_classloader_issue branch from 46e521b to a45ae7b Compare November 18, 2021 13:11
Copy link
Member

@kokosing kokosing left a comment

Choose a reason for hiding this comment

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

% nits

@Praveen2112 Praveen2112 force-pushed the praveen/phoenix_classloader_issue branch from a45ae7b to 578a560 Compare November 18, 2021 15:00
@Praveen2112 Praveen2112 force-pushed the praveen/phoenix_classloader_issue branch from 578a560 to f7bcb4b Compare November 19, 2021 02:51
@Praveen2112 Praveen2112 merged commit 44c3854 into trinodb:master Nov 19, 2021
@github-actions github-actions bot added this to the 365 milestone Nov 19, 2021
@Praveen2112 Praveen2112 mentioned this pull request Nov 30, 2021
12 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

Trino worker fails to connect to hbase with phoenix connector
2 participants