Files
doris/regression-test/data/export_p0/test_with_bom.out
Tiewei Fang f65844fae4 [Enhencement](Outfile/Export) Export data to csv file format with BOM (#30533)
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"
);
```
2024-02-16 10:16:40 +08:00

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