This is an automated email from the ASF dual-hosted git repository.

liugddx pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/seatunnel.git


The following commit(s) were added to refs/heads/dev by this push:
     new 5e1511ff0d [feature][web] hive add option because web need (#5154)
5e1511ff0d is described below

commit 5e1511ff0d7e757587441f3d121c7b3e73b69533
Author: XiaoJiang521 <[email protected]>
AuthorDate: Mon Aug 14 15:15:29 2023 +0800

    [feature][web] hive add option because web need (#5154)
    
    * [feature][web] hive add option because web need
    
    * [feature][web] hive add option read_columns
    
    * [feature][web] required update optional
    
    * [bugfix] mvn spotless
    
    * fix conf
    
    * fix conf
    
    ---------
    
    Co-authored-by: liuli <[email protected]>
---
 .../seatunnel/connectors/seatunnel/hive/source/HiveSourceFactory.java  | 3 +++
 1 file changed, 3 insertions(+)

diff --git 
a/seatunnel-connectors-v2/connector-hive/src/main/java/org/apache/seatunnel/connectors/seatunnel/hive/source/HiveSourceFactory.java
 
b/seatunnel-connectors-v2/connector-hive/src/main/java/org/apache/seatunnel/connectors/seatunnel/hive/source/HiveSourceFactory.java
index d744ce2a14..383b26405d 100644
--- 
a/seatunnel-connectors-v2/connector-hive/src/main/java/org/apache/seatunnel/connectors/seatunnel/hive/source/HiveSourceFactory.java
+++ 
b/seatunnel-connectors-v2/connector-hive/src/main/java/org/apache/seatunnel/connectors/seatunnel/hive/source/HiveSourceFactory.java
@@ -21,6 +21,7 @@ import org.apache.seatunnel.api.configuration.util.OptionRule;
 import org.apache.seatunnel.api.source.SeaTunnelSource;
 import org.apache.seatunnel.api.table.factory.Factory;
 import org.apache.seatunnel.api.table.factory.TableSourceFactory;
+import org.apache.seatunnel.connectors.seatunnel.file.config.BaseSourceConfig;
 import org.apache.seatunnel.connectors.seatunnel.hive.config.HiveConfig;
 
 import com.google.auto.service.AutoService;
@@ -37,6 +38,8 @@ public class HiveSourceFactory implements TableSourceFactory {
         return OptionRule.builder()
                 .required(HiveConfig.TABLE_NAME)
                 .required(HiveConfig.METASTORE_URI)
+                .optional(BaseSourceConfig.READ_PARTITIONS)
+                .optional(BaseSourceConfig.READ_COLUMNS)
                 .build();
     }
 

Reply via email to