Skip to content

[SNAP 3104] Showing external hive metastore tables as part of HIVETABLES VTI#1472

Open
vatsalmevada wants to merge 7 commits intomasterfrom
SNAP-3104
Open

[SNAP 3104] Showing external hive metastore tables as part of HIVETABLES VTI#1472
vatsalmevada wants to merge 7 commits intomasterfrom
SNAP-3104

Conversation

@vatsalmevada
Copy link
Contributor

@vatsalmevada vatsalmevada commented Nov 20, 2019

Changes proposed in this pull request

Showing external hive metastore tables as part of HIVETABLES VTI

Approach

Keeping a flag hiveSessionInitialized as part of the profile of the lead node
with the default value set to false.
When the hive session is initialized on the lead node, we set this flag to
true and distribute the updated profile.

When SYS.HIVETABLES VIT is executed on a server node, the server node checks
whether hiveSessionInitialized is set to true in lead's profile. If it is
set to true it executes ExternalHiveTablesCollectorFunction on the lead node
to fetch the metadata of hive tables available on external hive metastore.

ExternalHiveTablesCollectorFunction is only executed when
hiveSessionInitialized is set to true to avoid unnecessary remote function
call.


Note that server need to fetch these details from the leader node as the hive
session is available only one leader.

Patch testing

precheckin -Pstore
Manually tested. Will add automated coverage.

Other PRs

TIBCOSoftware/snappy-store#530

Vatsal Mevada added 4 commits November 18, 2019 13:21
as part of SYS.HIVETABLES VTI.

Pending: Changes are tested by picking first available snappysession
from ConnectionIdToSnappySession map instead of picking the correct
SnappySession for given connection id.
`ExternalHiveTablesCollectorFunction`.
- added copyright headers
…tion

which will be used to retrieve hive tables available in current schema.
@vatsalmevada vatsalmevada requested a review from kneeraj November 20, 2019 13:32
# Conflicts:
#	cluster/src/main/scala/io/snappydata/gemxd/ClusterCallbacksImpl.scala
#	core/src/main/scala/io/snappydata/util/ServiceUtils.scala
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.

1 participant