Skip to content

Conversation

@haoyuan
Copy link
Contributor

@haoyuan haoyuan commented Jan 19, 2020

Co-authored-by: David Zhu <[email protected]>
Co-authored-by: Zac Blanco <[email protected]>
Co-authored-by: Calvin Jia <[email protected]>
Co-authored-by: Bin Fan <[email protected]>

== RELEASE NOTES ==

Hive Changes
This change introduces the Alluxio metastore which connects to the [Alluxio catalog service](https://docs.alluxio.io/os/user/2.1/en/core-services/Catalog.html).

@highker highker self-requested a review January 20, 2020 00:29
Copy link

@highker highker left a comment

Choose a reason for hiding this comment

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

seemed through; structure wise looks good to me. There will be nits to fix. As a first step, could you fix the compilation error?

pom.xml Outdated
Copy link

Choose a reason for hiding this comment

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

This looks like an unrelated change

Copy link
Contributor

Choose a reason for hiding this comment

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

fixed

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Jan 21, 2020

CLA Check
The committers are authorized under a signed CLA.

  • ✅ Haoyuan Li (667075b68e64a34218dcb4ffd124dd90b409941a)

@yuzhu
Copy link
Contributor

yuzhu commented Jan 21, 2020

@highker I am working with @haoyuan on this PR.
Fixed the compilation and pom files. Could you please take a pass and give comments?

Thanks. Also, I guess I should go through the CLA process on EasyCLA?

@highker highker self-requested a review January 21, 2020 18:35
Copy link

@highker highker left a comment

Choose a reason for hiding this comment

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

Copy link

Choose a reason for hiding this comment

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

final

Copy link

Choose a reason for hiding this comment

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

requireNonNull

Copy link

Choose a reason for hiding this comment

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

nit: getSupportedColumnStatistics is not supported in AlluxioHiveMetastore.

Copy link

Choose a reason for hiding this comment

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

nit: put with the previous line

Copy link

Choose a reason for hiding this comment

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

nit

Table table = getTable(databaseName, tableName).orElseThrow(() -> new PrestoException(
        HIVE_METASTORE_ERROR,
        String.format("Could not retrieve table %s.%s", databaseName, tableName)));

Copy link

Choose a reason for hiding this comment

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

nit: one param per line; keep the first line empty

Copy link

Choose a reason for hiding this comment

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

same

Copy link

Choose a reason for hiding this comment

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

same

Copy link

Choose a reason for hiding this comment

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

same

Copy link

Choose a reason for hiding this comment

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

same

@yuzhu yuzhu force-pushed the alluxio-metastore branch 2 times, most recently from 667075b to 41079e2 Compare January 22, 2020 19:02
@highker highker self-requested a review January 22, 2020 21:21
Copy link

@highker highker left a comment

Choose a reason for hiding this comment

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

@yuzhu, could you update the commit title/message to be

Add Alluxio Hive metastore

@haoyuan haoyuan changed the title Add Alluxio Hive metastore to enable Presto with Alluxio Structured Data Service Add Alluxio Hive metastore Jan 22, 2020
@haoyuan
Copy link
Contributor Author

haoyuan commented Jan 22, 2020

@yuzhu, could you update the commit title/message to be

Add Alluxio Hive metastore

Done.

@yuzhu yuzhu force-pushed the alluxio-metastore branch from 41079e2 to 40ab2c9 Compare January 22, 2020 21:50
Copy link

@highker highker left a comment

Choose a reason for hiding this comment

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

Did skimmed through all the code. Could you fix the nits in the rest of the patch base on the coding style guideline?

Also, it might worth adding a test for AlluxioHiveMetastore as well

Copy link

Choose a reason for hiding this comment

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

nit

this.client = requireNonNull(client, "client is null");

Copy link

Choose a reason for hiding this comment

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

We usually use ImmutableMap.of

Copy link

Choose a reason for hiding this comment

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

same

Copy link

Choose a reason for hiding this comment

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

put this with the previous line

Copy link

Choose a reason for hiding this comment

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

spell out db

Copy link

Choose a reason for hiding this comment

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

put an empty line after this.

Copy link

Choose a reason for hiding this comment

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

(f) -> field

Copy link

Choose a reason for hiding this comment

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

spell out sd

Copy link

Choose a reason for hiding this comment

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

this method is not used?

@highker
Copy link

highker commented Jan 22, 2020

Once comment is address, feel free to click the "re-request review" button so I will get notified.

@yuzhu
Copy link
Contributor

yuzhu commented Jan 23, 2020

@highker Addressed your comment with the exception of adding test for AlluxioHiveMetastore

Regarding the test, I am planning to extend AbstractTestHive and use the docker containers to test the metastore. Does that sound like a reasonable plan to you?

I will also squash the commits once you have taken a pass. I want to separate the commits so it is easier to review.

@haoyuan haoyuan requested a review from highker January 23, 2020 23:21
Copy link

@highker highker left a comment

Choose a reason for hiding this comment

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

LGTM; minor nits only.

Could you squash all the commits into one?

Copy link

Choose a reason for hiding this comment

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

address

Copy link

Choose a reason for hiding this comment

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

not used; so is the one in the constructor

Copy link

Choose a reason for hiding this comment

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

merge with the pervious line

Copy link

Choose a reason for hiding this comment

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

replace with Guava's stuff.

Comment on lines 133 to 134
Copy link

Choose a reason for hiding this comment

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

merge into oneline

Copy link

Choose a reason for hiding this comment

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

nit

return partitionInfos.stream().
...

@yuzhu
Copy link
Contributor

yuzhu commented Jan 24, 2020

@highker thanks, i will fix those tonight. do you have any thoughts re:testing.

I am planning to extend AbstractTestHive and use the docker containers to test the metastore. Does that sound like a reasonable plan to you?

@highker
Copy link

highker commented Jan 24, 2020

@yuzhu, if the test for the metastore module is too complicated, don't worry about that. The config test is good enough. Docker sounds an overkill.

@yuzhu yuzhu force-pushed the alluxio-metastore branch from 9c67d17 to a6743cb Compare January 24, 2020 02:15
@haoyuan haoyuan requested a review from highker January 24, 2020 02:23
@yuzhu
Copy link
Contributor

yuzhu commented Jan 24, 2020

@highker comments addressed, commits squashed. Let me know if there is anything else.

Thanks!

Copy link

@highker highker left a comment

Choose a reason for hiding this comment

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

lgtm

@highker highker self-assigned this Jan 24, 2020
Copy link

@highker highker left a comment

Choose a reason for hiding this comment

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

Could you fix the test failure?

@yuzhu yuzhu force-pushed the alluxio-metastore branch from a6743cb to f6f08bb Compare January 24, 2020 03:16
This change introduces the Alluxio metastore which connects to the Alluxio catalog service. See: https://docs.alluxio.io/os/user/2.1/en/core-services/Catalog.html for more information on the catalog service. In this PR we introduce the bare minimum to configure and use the Alluxio catalog. Reads are the only supported operation at the moment.

Co-authored-by: David Zhu <[email protected]>
Co-authored-by: Zac Blanco <[email protected]>
@yuzhu yuzhu force-pushed the alluxio-metastore branch from f6f08bb to acb25d1 Compare January 24, 2020 03:45
@yuzhu
Copy link
Contributor

yuzhu commented Jan 24, 2020

@highker fixed. Thanks.

@highker highker merged commit 5106dc1 into prestodb:master Jan 24, 2020
@caithagoras caithagoras mentioned this pull request Feb 20, 2020
8 tasks
Sign up for free to 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