Help Center/ Data Lake Insight/ FAQs/ DLI Databases and Tables/ How Do I Do If I Can't Query Data After Manually Adding It to the Partition Directory of an OBS Table?
Updated on 2024-11-15 GMT+08:00

How Do I Do If I Can't Query Data After Manually Adding It to the Partition Directory of an OBS Table?

Symptom

Partition data is manually uploaded to a partition of an OBS table. However, the data cannot be queried using DLI SQL editor.

Solution

After manually adding partition data, you need to update the metadata information of the OBS table. Run the following statement on desired table:
MSCK REPAIR TABLE table_name;

Query the data in the OBS partitioned table.