feat(hudi-query): 增加判断hudi表和hdfs路径是否存在的方法

This commit is contained in:
2024-01-24 18:23:19 +08:00
parent dfb4221bdd
commit 8ba4296670
3 changed files with 121 additions and 0 deletions

View File

@@ -55,4 +55,13 @@ public interface HudiService {
@Get("/table/schema_hdfs")
ImmutableMap<String, Object> schema(@Query("hdfs") String hdfs);
@Get("/hdfs/exists_hudi_table_by_flink_job_id_alias")
Boolean existsHudiTable(@Query("flink_job_id") Long flinkJobId, @Query("alias") String alias);
@Get("/hdfs/exists_hudi_table_by_hdfs")
Boolean existsHudiTable(@Query("hdfs") String hdfs);
@Get("/hdfs/exists_path")
Boolean existsPath(@Query("hdfs") String hdfs);
}