Skip to content

Conversation

@Praveen2112
Copy link
Member

Description

Provides a small decoupling between ThriftMetastoreClient and ConnectorIdentity.

As of now only Thrift metastore supports impersonation (which will be based on ConnectorIdentity) so has moved it closer to thrift package - in future we can extend to other metastore if required.

Release notes

(x) This is not user-visible or docs only and no release notes are required.

Copy link
Member

@skrzypo987 skrzypo987 left a comment

Choose a reason for hiding this comment

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

Is this a preparation for something bigger?

Copy link
Member

Choose a reason for hiding this comment

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

This can be a singleton defined in the interface itself:

public static final SIMPLE_USER_NAME_PROVIDER = identity -> identity.getUser();

and you can bound it to instance in guice modules

@Praveen2112 Praveen2112 force-pushed the praveen/hive_user_name_provider branch from 9f3d398 to c8aaaff Compare February 2, 2023 10:09
@Praveen2112 Praveen2112 changed the title Introduce UserNameProvider for ThriftMetastore Use UserNameProvider for ThriftMetastore Feb 2, 2023
@Praveen2112 Praveen2112 force-pushed the praveen/hive_user_name_provider branch from c8aaaff to ae294a0 Compare February 2, 2023 10:18
@Praveen2112
Copy link
Member Author

@kokosing , @skrzypo987 AC

@skrzypo987
Copy link
Member

obraz
Perfect

@Praveen2112 Praveen2112 force-pushed the praveen/hive_user_name_provider branch from ae294a0 to 026a3ae Compare February 2, 2023 14:21
@Praveen2112 Praveen2112 force-pushed the praveen/hive_user_name_provider branch from 026a3ae to b78172a Compare February 6, 2023 08:29
@Praveen2112 Praveen2112 force-pushed the praveen/hive_user_name_provider branch from b78172a to a830d42 Compare February 7, 2023 08:46
@Praveen2112 Praveen2112 merged commit e27e7af into trinodb:master Feb 8, 2023
@github-actions github-actions bot added this to the 407 milestone Feb 8, 2023
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.

4 participants