You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by GitBox <gi...@apache.org> on 2019/06/26 18:31:29 UTC
[GitHub] [flink] bowenli86 commented on a change in pull request #8890:
[FLINK-12989][hive]: Generate HiveTableSink from from a Hive table
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_r297786954
##########
File path: flink-table/flink-table-common/src/main/java/org/apache/flink/table/catalog/ObjectPath.java
##########
@@ -28,8 +31,19 @@
* A database name and object (table/view/function) name combo in a catalog.
*/
public class ObjectPath {
- private final String databaseName;
- private final String objectName;
+ // Default database name
+ private static final String DEFAULT_DB_NAME = "default";
+ // Default object name
+ private static final String DEFAULT_OBJECT_NAME = "default";
+
+ private String databaseName = DEFAULT_DB_NAME;
+ private String objectName = DEFAULT_OBJECT_NAME;
+
+ /**
+ * Default constructor used for serialization/de-serialization.
+ */
+ public ObjectPath() {
Review comment:
I feel the changes of ObjectPath are somewhat more like a hack, and I'm not sure if we should expose this constructor to public.
Is there any way to not touch ObjectPath but do some changes to ser/de logic itself?
----------------------------------------------------------------
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:
users@infra.apache.org
With regards,
Apache Git Services