bowenli86 commented on a change in pull request #8890: [FLINK-12989][hive]: 
Generate HiveTableSink from from a Hive table
URL: https://github.com/apache/flink/pull/8890#discussion_r297882312
 
 

 ##########
 File path: 
flink-connectors/flink-connector-hive/src/main/java/org/apache/flink/batch/connectors/hive/HiveTableFactory.java
 ##########
 @@ -31,13 +32,23 @@
 import org.apache.flink.types.Row;
 import org.apache.flink.util.Preconditions;
 
+import org.apache.hadoop.hive.conf.HiveConf;
+import org.apache.hadoop.mapred.JobConf;
+
 import java.util.List;
 import java.util.Map;
 
+import static org.apache.flink.util.Preconditions.checkNotNull;
+
 /**
  * A table factory implementation for tables stored in Hive catalog.
  */
 public class HiveTableFactory implements TableSourceFactory<Row>, 
TableSinkFactory<Row> {
+       private HiveConf hiveConf;
+
+       public HiveTableFactory(HiveConf hiveConf) {
+               this.hiveConf = checkNotNull(hiveConf, "hiveConf  cannot be 
null");
 
 Review comment:
   nit:
   ```suggestion
                this.hiveConf = checkNotNull(hiveConf, "hiveConf cannot be 
null");
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to