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 2021/06/01 04:32:13 UTC

[GitHub] [flink] JasonLeeCoding commented on a change in pull request #16028: [FLINK-22795] Throw better exception when executing remote SQL file in SQL Client

JasonLeeCoding commented on a change in pull request #16028:
URL: https://github.com/apache/flink/pull/16028#discussion_r642774290



##########
File path: flink-table/flink-sql-client/src/test/java/org/apache/flink/table/client/SqlClientTest.java
##########
@@ -205,6 +205,17 @@ public void testExecuteSqlFile() throws Exception {
         }
     }
 
+    @Test
+    public void testExecuteSqlWithHDFSFile() throws Exception {
+        List<String> statements = Collections.singletonList("HELP;\n");
+        String sqlFilePath = createSqlFile(statements, "test-sql.sql");
+        String[] args = new String[] {"-f", "hdfs:/" + sqlFilePath};

Review comment:
       yes, u are rigth just need a path




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