Xianghu Wang created HUDI-3464:
----------------------------------

             Summary: Fix wrong exception message thrown from HiveSchemaProvider
                 Key: HUDI-3464
                 URL: https://issues.apache.org/jira/browse/HUDI-3464
             Project: Apache Hudi
          Issue Type: Bug
          Components: deltastreamer
            Reporter: Xianghu Wang


step to reproduce:
 # set  SOURCE_SCHEMA_TABLE_PROP, SOURCE_SCHEMA_DATABASE_PROP to right config;
 # SOURCE_SCHEMA_TABLE_PROP does not exist;
 # start the task using HiveSchemaProvider

Caused by: java.lang.IllegalArgumentException: Property 
hoodie.deltastreamer.schemaprovider.target.schema.hive.table not found
at 
org.apache.hudi.common.config.TypedProperties.checkKey(TypedProperties.java:48)
at 
org.apache.hudi.common.config.TypedProperties.getString(TypedProperties.java:58)
at 
org.apache.hudi.utilities.schema.HiveSchemaProvider.<init>(HiveSchemaProvider.java:83)

 

Acturally, the right message should be SOURCE_SCHEMA_TABLE_PROP not found, but 
it is covered by above error message



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to