bucketwarden-errors 0.1.0

BucketWarden S3 error catalogs and retry classification.
Documentation
&[
S3ServiceSpecificError {
        feature_id: "feat:bucketwarden.s3err.select.ambiguousfieldname",
        family: "select",
        code: "AmbiguousFieldName",
        status: 400,
        message: "The field name matches to multiple fields in the file. Check the SQL expression and the file, and try again.",
    },
S3ServiceSpecificError {
        feature_id: "feat:bucketwarden.s3err.select.busy",
        family: "select",
        code: "Busy",
        status: 503,
        message: "The service is unavailable. Try again later.",
    },
S3ServiceSpecificError {
        feature_id: "feat:bucketwarden.s3err.select.castfailed",
        family: "select",
        code: "CastFailed",
        status: 400,
        message: "An attempt to convert from one data type to another using CAST failed in the SQL expression.",
    },
S3ServiceSpecificError {
        feature_id: "feat:bucketwarden.s3err.select.columntoolong",
        family: "select",
        code: "ColumnTooLong",
        status: 400,
        message: "The length of a column in the result is greater than maxCharsPerColumn of 1 MB.",
    },
S3ServiceSpecificError {
        feature_id: "feat:bucketwarden.s3err.select.csvescapingrecorddelimiter",
        family: "select",
        code: "CSVEscapingRecordDelimiter",
        status: 400,
        message: "A quoted record delimiter was found in the file. To allow quoted record delimiters, set AllowQuotedRecordDelimiter to 'TRUE'.",
    },
S3ServiceSpecificError {
        feature_id: "feat:bucketwarden.s3err.select.csvparsingerror",
        family: "select",
        code: "CSVParsingError",
        status: 400,
        message: "An error occurred while parsing the CSV file. Check the file and try again.",
    },
S3ServiceSpecificError {
        feature_id: "feat:bucketwarden.s3err.select.csvunescapedquote",
        family: "select",
        code: "CSVUnescapedQuote",
        status: 400,
        message: "An unescaped quote was found while parsing the CSV file. To allow quoted record delimiters, set AllowQuotedRecordDelimiter to 'TRUE'.",
    },
S3ServiceSpecificError {
        feature_id: "feat:bucketwarden.s3err.select.emptyrequestbody",
        family: "select",
        code: "EmptyRequestBody",
        status: 400,
        message: "The request body cannot be empty.",
    },
S3ServiceSpecificError {
        feature_id: "feat:bucketwarden.s3err.select.evaluatorbindingdoesnotexist",
        family: "select",
        code: "EvaluatorBindingDoesNotExist",
        status: 400,
        message: "A column name or a path provided does not exist in the SQL expression.",
    },
S3ServiceSpecificError {
        feature_id: "feat:bucketwarden.s3err.select.evaluatorinvalidarguments",
        family: "select",
        code: "EvaluatorInvalidArguments",
        status: 400,
        message: "There is an incorrect number of arguments in the function call in the SQL expression.",
    },
S3ServiceSpecificError {
        feature_id: "feat:bucketwarden.s3err.select.evaluatorinvalidtimestampformatpattern",
        family: "select",
        code: "EvaluatorInvalidTimestampFormatPattern",
        status: 400,
        message: "The timestamp format string in the SQL expression is not valid.",
    },
S3ServiceSpecificError {
        feature_id: "feat:bucketwarden.s3err.select.evaluatorinvalidtimestampformatpatternsymbol",
        family: "select",
        code: "EvaluatorInvalidTimestampFormatPatternSymbol",
        status: 400,
        message: "The timestamp format pattern contains a symbol in the SQL expression that is not valid.",
    },
S3ServiceSpecificError {
        feature_id: "feat:bucketwarden.s3err.select.evaluatorinvalidtimestampformatpatternsymbolforparsing",
        family: "select",
        code: "EvaluatorInvalidTimestampFormatPatternSymbolForParsing",
        status: 400,
        message: "The timestamp format pattern contains a valid format symbol that cannot be applied to timestamp parsing in the SQL expression.",
    },
S3ServiceSpecificError {
        feature_id: "feat:bucketwarden.s3err.select.evaluatorinvalidtimestampformatpatterntoken",
        family: "select",
        code: "EvaluatorInvalidTimestampFormatPatternToken",
        status: 400,
        message: "The timestamp format pattern contains a token in the SQL expression that is not valid.",
    },
S3ServiceSpecificError {
        feature_id: "feat:bucketwarden.s3err.select.evaluatorlikepatterninvalidescapesequence",
        family: "select",
        code: "EvaluatorLikePatternInvalidEscapeSequence",
        status: 400,
        message: "An argument given to the LIKE expression was not valid.",
    },
S3ServiceSpecificError {
        feature_id: "feat:bucketwarden.s3err.select.evaluatornegativelimit",
        family: "select",
        code: "EvaluatorNegativeLimit",
        status: 400,
        message: "LIMIT must not be negative.",
    },
S3ServiceSpecificError {
        feature_id: "feat:bucketwarden.s3err.select.evaluatortimestampformatpatternduplicatefields",
        family: "select",
        code: "EvaluatorTimestampFormatPatternDuplicateFields",
        status: 400,
        message: "The timestamp format pattern contains multiple format specifiers representing the timestamp field in the SQL expression.",
    },
S3ServiceSpecificError {
        feature_id: "feat:bucketwarden.s3err.select.evaluatortimestampformatpatternhourclockampmmismatch",
        family: "select",
        code: "EvaluatorTimestampFormatPatternHourClockAmPmMismatch",
        status: 400,
        message: "The timestamp format pattern contains a 12-hour hour of day format symbol but doesn't also contain an AM/PM field, or it contains a 24-hour hour of day format specifier and contains an AM/PM field in the SQL expression.",
    },
S3ServiceSpecificError {
        feature_id: "feat:bucketwarden.s3err.select.evaluatorunterminatedtimestampformatpatterntoken",
        family: "select",
        code: "EvaluatorUnterminatedTimestampFormatPatternToken",
        status: 400,
        message: "The timestamp format pattern contains an unterminated token in the SQL expression.",
    },
S3ServiceSpecificError {
        feature_id: "feat:bucketwarden.s3err.select.expressiontoolong",
        family: "select",
        code: "ExpressionTooLong",
        status: 400,
        message: "The SQL expression is too long. The maximum byte-length for an SQL expression is 256 KB.",
    },
S3ServiceSpecificError {
        feature_id: "feat:bucketwarden.s3err.select.externalevalexception",
        family: "select",
        code: "ExternalEvalException",
        status: 400,
        message: "The query cannot be evaluated. Check the file and try again.",
    },
S3ServiceSpecificError {
        feature_id: "feat:bucketwarden.s3err.select.illegalsqlfunctionargument",
        family: "select",
        code: "IllegalSqlFunctionArgument",
        status: 400,
        message: "An illegal argument was used in the SQL function.",
    },
S3ServiceSpecificError {
        feature_id: "feat:bucketwarden.s3err.select.incorrectsqlfunctionargumenttype",
        family: "select",
        code: "IncorrectSqlFunctionArgumentType",
        status: 400,
        message: "An incorrect argument type was specified in a function call in the SQL expression.",
    },
S3ServiceSpecificError {
        feature_id: "feat:bucketwarden.s3err.select.integeroverflow",
        family: "select",
        code: "IntegerOverflow",
        status: 400,
        message: "An integer overflow or underflow occurred in the SQL expression.",
    },
S3ServiceSpecificError {
        feature_id: "feat:bucketwarden.s3err.select.internalerror",
        family: "select",
        code: "InternalError",
        status: 500,
        message: "An internal error occurred.",
    },
S3ServiceSpecificError {
        feature_id: "feat:bucketwarden.s3err.select.invalidcast",
        family: "select",
        code: "InvalidCast",
        status: 400,
        message: "An attempt to convert from one data type to another using CAST failed in the SQL expression.",
    },
S3ServiceSpecificError {
        feature_id: "feat:bucketwarden.s3err.select.invalidcolumnindex",
        family: "select",
        code: "InvalidColumnIndex",
        status: 400,
        message: "The column index in the SQL expression is not valid.",
    },
S3ServiceSpecificError {
        feature_id: "feat:bucketwarden.s3err.select.invalidcompressionformat",
        family: "select",
        code: "InvalidCompressionFormat",
        status: 400,
        message: "The file is not in a supported compression format. Only GZIP and BZIP2 are supported.",
    },
S3ServiceSpecificError {
        feature_id: "feat:bucketwarden.s3err.select.invaliddatasource",
        family: "select",
        code: "InvalidDataSource",
        status: 400,
        message: "The data source type is not valid. Only CSV, JSON, and Parquet are supported.",
    },
S3ServiceSpecificError {
        feature_id: "feat:bucketwarden.s3err.select.invaliddatatype",
        family: "select",
        code: "InvalidDataType",
        status: 400,
        message: "The SQL expression contains a data type that is not valid.",
    },
S3ServiceSpecificError {
        feature_id: "feat:bucketwarden.s3err.select.invalidexpressiontype",
        family: "select",
        code: "InvalidExpressionType",
        status: 400,
        message: "The ExpressionType value is not valid. Only SQL expressions are supported.",
    },
S3ServiceSpecificError {
        feature_id: "feat:bucketwarden.s3err.select.invalidfileheaderinfo",
        family: "select",
        code: "InvalidFileHeaderInfo",
        status: 400,
        message: "The FileHeaderInfo value is not valid. Only NONE, USE, and IGNORE are supported.",
    },
S3ServiceSpecificError {
        feature_id: "feat:bucketwarden.s3err.select.invalidjsontype",
        family: "select",
        code: "InvalidJsonType",
        status: 400,
        message: "The JsonType value is not valid. Only DOCUMENT and LINES are supported.",
    },
S3ServiceSpecificError {
        feature_id: "feat:bucketwarden.s3err.select.invalidkeypath",
        family: "select",
        code: "InvalidKeyPath",
        status: 400,
        message: "The key path in the SQL expression is not valid.",
    },
S3ServiceSpecificError {
        feature_id: "feat:bucketwarden.s3err.select.invalidquotefields",
        family: "select",
        code: "InvalidQuoteFields",
        status: 400,
        message: "The QuoteFields value is not valid. Only ALWAYS and ASNEEDED are supported.",
    },
S3ServiceSpecificError {
        feature_id: "feat:bucketwarden.s3err.select.invalidrequestparameter",
        family: "select",
        code: "InvalidRequestParameter",
        status: 400,
        message: "The value of a parameter in the SelectRequest element is not valid. Check the service API documentation and try again.",
    },
S3ServiceSpecificError {
        feature_id: "feat:bucketwarden.s3err.select.invalidscanrange",
        family: "select",
        code: "InvalidScanRange",
        status: 400,
        message: "The provided scan range is not valid.",
    },
S3ServiceSpecificError {
        feature_id: "feat:bucketwarden.s3err.select.invalidtablealias",
        family: "select",
        code: "InvalidTableAlias",
        status: 400,
        message: "The SQL expression contains a table alias that is not valid.",
    },
S3ServiceSpecificError {
        feature_id: "feat:bucketwarden.s3err.select.invalidtextencoding",
        family: "select",
        code: "InvalidTextEncoding",
        status: 400,
        message: "The encoding type is not valid. Only UTF-8 encoding is supported.",
    },
S3ServiceSpecificError {
        feature_id: "feat:bucketwarden.s3err.select.jsonparsingerror",
        family: "select",
        code: "JSONParsingError",
        status: 400,
        message: "An error occurred while parsing the JSON file. Check the file and try again.",
    },
S3ServiceSpecificError {
        feature_id: "feat:bucketwarden.s3err.select.lexerinvalidchar",
        family: "select",
        code: "LexerInvalidChar",
        status: 400,
        message: "The SQL expression contains a character that is not valid.",
    },
S3ServiceSpecificError {
        feature_id: "feat:bucketwarden.s3err.select.lexerinvalidionliteral",
        family: "select",
        code: "LexerInvalidIONLiteral",
        status: 400,
        message: "The SQL expression contains an operator that is not valid.",
    },
S3ServiceSpecificError {
        feature_id: "feat:bucketwarden.s3err.select.lexerinvalidliteral",
        family: "select",
        code: "LexerInvalidLiteral",
        status: 400,
        message: "The SQL expression contains an operator that is not valid.",
    },
S3ServiceSpecificError {
        feature_id: "feat:bucketwarden.s3err.select.lexerinvalidoperator",
        family: "select",
        code: "LexerInvalidOperator",
        status: 400,
        message: "The SQL expression contains a literal that is not valid.",
    },
S3ServiceSpecificError {
        feature_id: "feat:bucketwarden.s3err.select.likeinvalidinputs",
        family: "select",
        code: "LikeInvalidInputs",
        status: 400,
        message: "The argument given to the LIKE clause in the SQL expression is not valid.",
    },
S3ServiceSpecificError {
        feature_id: "feat:bucketwarden.s3err.select.malformedxml",
        family: "select",
        code: "MalformedXML",
        status: 400,
        message: "The XML provided was not well formed or did not validate against our published schema. Check the service documentation and try again.",
    },
S3ServiceSpecificError {
        feature_id: "feat:bucketwarden.s3err.select.maxoperatorsexceeded",
        family: "select",
        code: "MaxOperatorsExceeded",
        status: 400,
        message: "Failed to parse SQL expression, try reducing complexity. For example, reduce number of operators used.",
    },
S3ServiceSpecificError {
        feature_id: "feat:bucketwarden.s3err.select.methodnotallowed",
        family: "select",
        code: "MethodNotAllowed",
        status: 405,
        message: "The specified method is not allowed against this resource.",
    },
S3ServiceSpecificError {
        feature_id: "feat:bucketwarden.s3err.select.missingrequiredparameter",
        family: "select",
        code: "MissingRequiredParameter",
        status: 400,
        message: "The SelectRequest entity is missing a required parameter. Check the service documentation and try again.",
    },
S3ServiceSpecificError {
        feature_id: "feat:bucketwarden.s3err.select.multipledatasourcesunsupported",
        family: "select",
        code: "MultipleDataSourcesUnsupported",
        status: 400,
        message: "Multiple data sources are not supported.",
    },
S3ServiceSpecificError {
        feature_id: "feat:bucketwarden.s3err.select.numberformaterror",
        family: "select",
        code: "NumberFormatError",
        status: 400,
        message: "An error occurred while parsing a number. This error can be caused by underflow or overflow of integers.",
    },
S3ServiceSpecificError {
        feature_id: "feat:bucketwarden.s3err.select.objectserializationconflict",
        family: "select",
        code: "ObjectSerializationConflict",
        status: 400,
        message: "InputSerialization specifies more than one format (CSV, JSON, or Parquet), or OutputSerialization specifies more than one format (CSV or JSON). For InputSerialization and OutputSerialization, you can specify only one format for each.",
    },
S3ServiceSpecificError {
        feature_id: "feat:bucketwarden.s3err.select.overmaxcolumn",
        family: "select",
        code: "OverMaxColumn",
        status: 400,
        message: "The number of columns in the result is greater than the maximum allowable number of columns.",
    },
S3ServiceSpecificError {
        feature_id: "feat:bucketwarden.s3err.select.overmaxparquetblocksize",
        family: "select",
        code: "OverMaxParquetBlockSize",
        status: 400,
        message: "The Parquet file is above the max row group size.",
    },
]