You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by mo...@apache.org on 2021/11/18 06:37:40 UTC
[incubator-doris] branch master updated: [refactor] remove unused code (#7137)
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 <zh...@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-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org