|
|
@ -22,7 +22,6 @@ from minio import Minio |
|
|
|
from minio.select.options import (CSVInput, CSVOutput, InputSerialization, |
|
|
|
from minio.select.options import (CSVInput, CSVOutput, InputSerialization, |
|
|
|
JSONOutput, OutputSerialization, |
|
|
|
JSONOutput, OutputSerialization, |
|
|
|
RequestProgress, SelectObjectOptions) |
|
|
|
RequestProgress, SelectObjectOptions) |
|
|
|
|
|
|
|
|
|
|
|
from utils import * |
|
|
|
from utils import * |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -98,17 +97,17 @@ def test_csv_input_custom_quote_char(client, log_output): |
|
|
|
expression="select * from s3object", |
|
|
|
expression="select * from s3object", |
|
|
|
input_serialization=InputSerialization( |
|
|
|
input_serialization=InputSerialization( |
|
|
|
compression_type="NONE", |
|
|
|
compression_type="NONE", |
|
|
|
csv=CSVInput(FileHeaderInfo="NONE", |
|
|
|
csv=CSVInput(file_header_info="NONE", |
|
|
|
RecordDelimiter="\n", |
|
|
|
record_delimiter="\n", |
|
|
|
FieldDelimiter=",", |
|
|
|
field_delimiter=",", |
|
|
|
QuoteCharacter=quote_char, |
|
|
|
quote_character=quote_char, |
|
|
|
QuoteEscapeCharacter=escape_char, |
|
|
|
quote_escape_character=escape_char, |
|
|
|
Comments="#", |
|
|
|
comments="#", |
|
|
|
AllowQuotedRecordDelimiter="FALSE",), |
|
|
|
allow_quoted_record_delimiter="FALSE",), |
|
|
|
), |
|
|
|
), |
|
|
|
output_serialization=OutputSerialization( |
|
|
|
output_serialization=OutputSerialization( |
|
|
|
json=JSONOutput( |
|
|
|
json=JSONOutput( |
|
|
|
RecordDelimiter="\n", |
|
|
|
record_delimiter="\n", |
|
|
|
) |
|
|
|
) |
|
|
|
), |
|
|
|
), |
|
|
|
request_progress=RequestProgress( |
|
|
|
request_progress=RequestProgress( |
|
|
@ -155,20 +154,22 @@ def test_csv_output_custom_quote_char(client, log_output): |
|
|
|
expression="select * from s3object", |
|
|
|
expression="select * from s3object", |
|
|
|
input_serialization=InputSerialization( |
|
|
|
input_serialization=InputSerialization( |
|
|
|
compression_type="NONE", |
|
|
|
compression_type="NONE", |
|
|
|
csv=CSVInput(FileHeaderInfo="NONE", |
|
|
|
csv=CSVInput(file_header_info="NONE", |
|
|
|
RecordDelimiter="\n", |
|
|
|
record_delimiter="\n", |
|
|
|
FieldDelimiter=",", |
|
|
|
field_delimiter=",", |
|
|
|
QuoteCharacter='"', |
|
|
|
quote_character='"', |
|
|
|
QuoteEscapeCharacter='"', |
|
|
|
quote_escape_character='"', |
|
|
|
Comments="#", |
|
|
|
comments="#", |
|
|
|
AllowQuotedRecordDelimiter="FALSE",), |
|
|
|
allow_quoted_record_delimiter="FALSE", |
|
|
|
|
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
output_serialization=OutputSerialization( |
|
|
|
output_serialization=OutputSerialization( |
|
|
|
csv=CSVOutput(QuoteFields="ALWAYS", |
|
|
|
csv=CSVOutput(quote_fields="ALWAYS", |
|
|
|
RecordDelimiter="\n", |
|
|
|
record_delimiter="\n", |
|
|
|
FieldDelimiter=",", |
|
|
|
field_delimiter=",", |
|
|
|
QuoteCharacter=quote_char, |
|
|
|
quote_character=quote_char, |
|
|
|
QuoteEscapeCharacter=escape_char,) |
|
|
|
quote_escape_character=escape_char, |
|
|
|
|
|
|
|
) |
|
|
|
), |
|
|
|
), |
|
|
|
request_progress=RequestProgress( |
|
|
|
request_progress=RequestProgress( |
|
|
|
enabled="False" |
|
|
|
enabled="False" |
|
|
|