Updated on 2026-06-27 GMT+08:00

SYNC_HIVE

Notes and Constraints

This section applies only to MRS 3.5.0-LTS or later.

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]')

Parameter Description

Table 1 Parameter description

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.