Matches s3 invalid compression format error for 'mc sql' (#9067)

This commit is contained in:
ebozduman
2020-03-05 19:34:04 -08:00
committed by GitHub
parent 7f19a9a617
commit a1c7c9ea73
3 changed files with 28 additions and 2 deletions

View File

@@ -71,6 +71,24 @@ func errInvalidCompressionFormat(err error) *s3Error {
}
}
func errInvalidBZIP2CompressionFormat(err error) *s3Error {
return &s3Error{
code: "InvalidCompressionFormat",
message: "BZIP2 is not applicable to the queried object. Please correct the request and try again.",
statusCode: 400,
cause: err,
}
}
func errInvalidGZIPCompressionFormat(err error) *s3Error {
return &s3Error{
code: "InvalidCompressionFormat",
message: "GZIP is not applicable to the queried object. Please correct the request and try again.",
statusCode: 400,
cause: err,
}
}
func errInvalidDataSource(err error) *s3Error {
return &s3Error{
code: "InvalidDataSource",