This is an automated email from the ASF dual-hosted git repository. morningman pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-doris.git
The following commit(s) were added to refs/heads/master by this push: new 4f7d7a5 [refactor] remove unused code (#7137) 4f7d7a5 is described below commit 4f7d7a52bdd24073da66e51316f7d96dd8fb1442 Author: jiafeng.zhang <zhang...@gmail.com> AuthorDate: Thu Nov 18 14:37:31 2021 +0800 [refactor] remove unused code (#7137) Remove unused code in ImportAction.java --- .../java/org/apache/doris/httpv2/restv2/ImportAction.java | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/fe/fe-core/src/main/java/org/apache/doris/httpv2/restv2/ImportAction.java b/fe/fe-core/src/main/java/org/apache/doris/httpv2/restv2/ImportAction.java index 267ae98..98748cb 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/httpv2/restv2/ImportAction.java +++ b/fe/fe-core/src/main/java/org/apache/doris/httpv2/restv2/ImportAction.java @@ -210,19 +210,4 @@ public class ImportAction { private List<String> colNames; private List<List<String>> sampleFileLines; } - - - public static void main(String[] args) { - ImportAction importAction = new ImportAction(); - String str = "1,2,3\n4,5,6\n,7,8,9,中国"; - byte[] fileContentBytes = str.getBytes(); - System.out.println(fileContentBytes.length); - String newStr = new String(fileContentBytes, 0,fileContentBytes.length - 2); - System.out.println(newStr); - - FileSample fileSample = new FileSample(); - importAction.parseContent(",", "\n", newStr.getBytes(), fileSample); - System.out.println(fileSample.sampleFileLines); - } - } --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org