Updated on 2024-12-13 GMT+08:00

SYNC_HIVE

This topic is available for MRS 3.5.0-LTS or later only.

Function

This command is used to synchronize Hudi tables stored in the Hudi data directory to Hive.

Syntax

call sync_hive(table => '[table]', tablePath => '[tablePath]')

Description

Table 1 Parameters

Parameter

Description

Mandatory

table

Name of the table to be synchronized to Hive.

Yes. If the table does not exist, it will be created.

tablePath

Storage path of the Hudi data directory

Yes

Example

call sync_hive(table => 'hudi_table', tablePath => '/user/hive/warehouse/hudi_table')

Response

You can view query results on the client.