danny0405 commented on a change in pull request #9502: [FLINK-13814][hive] 
HiveTableSink should strip quotes from partition …
URL: https://github.com/apache/flink/pull/9502#discussion_r317441644
 
 

 ##########
 File path: 
flink-connectors/flink-connector-hive/src/test/java/org/apache/flink/connectors/hive/TableEnvHiveConnectorTest.java
 ##########
 @@ -171,6 +172,57 @@ public void testDecimal() throws Exception {
                }
        }
 
+       @Test
+       public void testStaticPartition() throws Exception {
+               hiveShell.execute("create database db1");
+               try {
+                       hiveShell.execute("create table db1.src (x int)");
+                       hiveShell.insertInto("db1", 
"src").addRow(1).addRow(2).commit();
+                       hiveShell.execute("create table db1.dest (x int) 
partitioned by (p1 string, p2 double)");
+                       TableEnvironment tableEnv = 
getTableEnvWithHiveCatalog();
+                       tableEnv.sqlUpdate("insert into db1.dest partition 
(p1='1''1', p2=1.1) select x from db1.src");
 
 Review comment:
   Agree, a little confusing.

----------------------------------------------------------------
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