The UTF8 format of the Windows system has BOM.
We add a new user property to `Outfile/Export`。Therefore, when exporting Doris data, users can choose whether to bring BOM on the beginning of the CSV file.
**Usage:**
```sql
-- outfile:
select * from demo.student
into outfile "file:///xxx/export/exp_"
format as csv
properties(
"column_separator" = ",",
"with_bom" = "true"
);
-- Export:
EXPORT TABLE student TO "file:///xx/tmpdata/export/exp_"
PROPERTIES(
"format" = "csv",
"with_bom" = "true"
);
```
67 lines
927 B
Plaintext
67 lines
927 B
Plaintext
-- This file is automatically generated. You should know what you did if you want to edit this
|
|
-- !select_export1 --
|
|
1 2017-10-01
|
|
10 2017-10-01
|
|
11 2017-10-01
|
|
2 2017-10-01
|
|
3 2017-10-01
|
|
4 2017-10-01
|
|
5 2017-10-01
|
|
6 2017-10-01
|
|
7 2017-10-01
|
|
8 2017-10-01
|
|
9 2017-10-01
|
|
|
|
-- !select_load1 --
|
|
1 2017-10-01
|
|
10 2017-10-01
|
|
11 2017-10-01
|
|
2 2017-10-01
|
|
3 2017-10-01
|
|
4 2017-10-01
|
|
5 2017-10-01
|
|
6 2017-10-01
|
|
7 2017-10-01
|
|
8 2017-10-01
|
|
9 2017-10-01
|
|
|
|
-- !select_load1 --
|
|
1 2017-10-01
|
|
10 2017-10-01
|
|
11 2017-10-01
|
|
2 2017-10-01
|
|
3 2017-10-01
|
|
4 2017-10-01
|
|
5 2017-10-01
|
|
6 2017-10-01
|
|
7 2017-10-01
|
|
8 2017-10-01
|
|
9 2017-10-01
|
|
|
|
-- !select_load1 --
|
|
1 2017-10-01
|
|
10 2017-10-01
|
|
11 2017-10-01
|
|
2 2017-10-01
|
|
3 2017-10-01
|
|
4 2017-10-01
|
|
5 2017-10-01
|
|
6 2017-10-01
|
|
7 2017-10-01
|
|
8 2017-10-01
|
|
9 2017-10-01
|
|
|
|
-- !select_load1 --
|
|
1 2017-10-01
|
|
10 2017-10-01
|
|
11 2017-10-01
|
|
2 2017-10-01
|
|
3 2017-10-01
|
|
4 2017-10-01
|
|
5 2017-10-01
|
|
6 2017-10-01
|
|
7 2017-10-01
|
|
8 2017-10-01
|
|
9 2017-10-01
|
|
|