Skip to content

Commit 343e91b

Browse files
Maria Lubeznovdahlerlend
authored andcommitted
WL#15951: Lakehouse error infrastructure improvements Phase 1
Bug#36021695 - WL#15951:Missing error message when a pattern is returning csv file to load but but "dialect":{"format": "parquet"}} is provided * Added error code to error messages struct, updated interface functions. * Added new lakehouse error codes and messages to mysql's messages_to_clients.txt * Parquet and Avro now use the same codes and messages for common errors with CSV. * Removed CanLogWarning function and moved the check into AddWarning. * All datalake tests have been re-recorded to include new error codes. Change-Id: Ib17d631cacf843d0ec744ffb2c27d73e842529a5
1 parent e003060 commit 343e91b

File tree

1 file changed

+192
-0
lines changed

1 file changed

+192
-0
lines changed

share/messages_to_clients.txt

Lines changed: 192 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10129,6 +10129,198 @@ ER_CANT_SET_GTID_NEXT_TO_AUTOMATIC_TAGGED_WHEN_GTID_MODE_IS_OFF
1012910129
ER_GTID_NEXT_TAG_GTID_MODE_OFF
1013010130
eng "@@SESSION.GTID_NEXT cannot be set to UUID:TAG:NUMBER when @@GLOBAL.GTID_MODE = OFF."
1013110131

10132+
ER_LH_COL_NOT_NULLABLE
10133+
eng "Column %d of %s : Column contains null but it is not nullable."
10134+
10135+
ER_LH_WARN_COL_MISSING_NOT_NULLABLE
10136+
eng "Column %d of %s : Column is missing, but it is not nullable and no explicit default value is provided."
10137+
10138+
ER_LH_COL_IS_EMPTY
10139+
eng "Column %d of %s : Column is empty."
10140+
10141+
ER_LH_COL_IS_EMPTY_WARN
10142+
eng "Column %d of %s : Column is empty, setting default value."
10143+
10144+
ER_LH_BAD_VALUE
10145+
eng "Column %d of %s : Invalid %s value."
10146+
10147+
ER_LH_DECIMAL_UNKNOWN_ERR
10148+
eng "Column %d of %s : Unknown error while parsing decimal."
10149+
10150+
ER_LH_DECIMAL_OOM_ERR
10151+
eng "Column %d of %s : Out of memory loading decimal."
10152+
10153+
ER_LH_WARN_DECIMAL_ROUNDING
10154+
eng "Column %d of %s : Fraction exceeds schema, rounding value."
10155+
10156+
ER_LH_DECIMAL_PRECISION_EXCEEDS_SCHEMA
10157+
eng "Column %d of %s : decimal precision exceeds schema."
10158+
10159+
ER_LH_EXCEEDS_MIN
10160+
eng "Column %d of %s : %s exceeds min."
10161+
10162+
ER_LH_EXCEEDS_MAX
10163+
eng "Column %d of %s : %s exceeds max."
10164+
10165+
ER_LH_WARN_EXCEEDS_MIN_TRUNCATING
10166+
eng "Column %d of %s : %s exceeds min, setting to min value possible."
10167+
10168+
ER_LH_WARN_EXCEEDS_MAX_TRUNCATING
10169+
eng "Column %d of %s : %s exceeds max, setting to max value possible."
10170+
10171+
ER_LH_REAL_IS_NAN
10172+
eng "Column %d of %s : Real value is NaN."
10173+
10174+
ER_LH_OUT_OF_RANGE
10175+
eng "Column %d of %s : %s value is out of range."
10176+
10177+
ER_LH_DATETIME_FORMAT
10178+
eng "Column %d of %s : Error while applying %s format."
10179+
10180+
ER_LH_WARN_TRUNCATED
10181+
eng "Column %d of %s : %s value was truncated."
10182+
10183+
ER_LH_CANNOT_CONVERT_STRING
10184+
eng "Column %d of %s : Cannot convert string %s."
10185+
10186+
ER_LH_RESORCE_PRINCIPAL_ERR
10187+
eng "Resource principal error."
10188+
10189+
ER_LH_AWS_AUTH_ERR
10190+
eng "AWS authentication error."
10191+
10192+
ER_LH_CSV_PARSING_ERR
10193+
eng "%s:%lu: Parsing error found. %s."
10194+
10195+
ER_LH_COLUMN_MISMATCH_ERR
10196+
eng "%s: Mismatch in the number of columns. Expected %u, found %u."
10197+
10198+
ER_LH_COLUMN_MAX_ERR
10199+
eng "%s: More than %u column(s) found."
10200+
10201+
ER_LH_CHARSET_UNSUPPORTED
10202+
eng "Column %d in %s: Charset is not supported."
10203+
10204+
ER_LH_PARQUET_DECIMAL_CONVERSION_ERR
10205+
eng "Column %d in %s: Decimal conversion error."
10206+
10207+
ER_LH_STRING_TOO_LONG
10208+
eng "Column %d in %s: String is too long."
10209+
10210+
ER_LH_RESORCE_PRINCIPAL_BUCKET_ERR
10211+
eng "Resource Principal endpoint is not configured. Cannot access following buckets: %s."
10212+
10213+
ER_LH_NO_FILES_FOUND
10214+
eng "No files found corresponding to the following data locations: %s."
10215+
10216+
ER_LH_EMPTY_FILE
10217+
eng "File %s is empty."
10218+
10219+
ER_LH_DUPLICATE_FILE
10220+
eng "File %s was not processed (duplicate)."
10221+
10222+
ER_LH_AVRO_SCHEMA_DEPTH_EXCEEDS_MAX
10223+
eng "File %s: Avro schema depth exceeds max allowed depth."
10224+
10225+
ER_LH_AVRO_HEADER_MISMATCH
10226+
eng "File %s: Header does not match other files."
10227+
10228+
ER_LH_AVRO_ENUM_CANNOT_CONVERT_CHARSET
10229+
eng "File %s: Enum symbol can't convert to column charset."
10230+
10231+
ER_LH_AVRO_ENUM_MISMATCH
10232+
eng "File %s: Enum symbols are not the same, or are not in the same order."
10233+
10234+
ER_LH_AVRO_TYPE_CANNOT_CONVERT
10235+
eng "Column %d in %s: Avro value of physical type %.*s logical type %.*s cannot be converted to mysql type %s."
10236+
10237+
ER_LH_AVRO_FILE_ENDS_UNEXPECTEDLY
10238+
eng "File %.*s: Ends unexpectedly."
10239+
10240+
ER_LH_AVRO_FILE_DATA_CORRUPT
10241+
eng "File %.*s: File data might be corrupt."
10242+
10243+
ER_LH_AVRO_INVALID_UNION
10244+
eng "Column %d in %s: Invalid union encountered. Unions are only supported to represent nullable columns. One of the two types of the union must be null."
10245+
10246+
ER_LH_AVRO_INVALID_BLOCK_SIZE
10247+
eng "File %.*s: Invalid avro block size."
10248+
10249+
ER_LH_AVRO_INVALID_BLOCK_RECORD_COUNT
10250+
eng "File %.*s: Invalid Avro block record count."
10251+
10252+
ER_LH_FORMAT_HEADER_NO_MAGIC_BYTES
10253+
eng "File %.*s: Cannot locate %s specific metadata. Either the file is corrupted or this is not an %s file."
10254+
10255+
ER_LH_AVRO_HEADER_METADATA_ERR
10256+
eng "File %.*s: Could not process Avro header metadata. The metadata is corrupted or invalid."
10257+
10258+
ER_LH_AVRO_HEADER_NO_SCHEMA
10259+
eng "File %.*s: No schema in Avro header metadata."
10260+
10261+
ER_LH_AVRO_NO_CODEC_IN_HEADER
10262+
eng "File %.*s: No codec in Avro header metadata."
10263+
10264+
ER_LH_AVRO_INVALID_NAME_IN_SCHEMA
10265+
eng "File %.*s: Invalid name in Avro schema."
10266+
10267+
ER_LH_AVRO_DECODING_ERR
10268+
eng "File %.*s: Error decoding Avro %.*s. %s"
10269+
10270+
ER_LH_PARQUET_NON_UTF8_FILE_ENC
10271+
eng "Column %d in %s: String with non-utf8 file encoding."
10272+
10273+
ER_LH_PARQUET_SCHEMA_MISMATCH
10274+
eng "Difference in schema among Parquet files."
10275+
10276+
ER_LH_PARQUET_ROW_GROUP_SIZE_EXCEEDS_MAX
10277+
eng "File %s: Size of row group %ld is larger than maximum allowed size (%d)."
10278+
10279+
ER_LH_PARQUET_CANNOT_LOCATE_OFFSET
10280+
eng "File %s: Cannot locate offset of row group %ld in metadata."
10281+
10282+
ER_LH_PARQUET_TYPE_CANNOT_CONVERT
10283+
eng "Column %d in parquet table cannot be converted to mysql format."
10284+
10285+
ER_LH_PARQUET_CANNOT_LOCATE_SCHEMA
10286+
eng "Cannot locate schema in %s."
10287+
10288+
ER_LH_INFER_SCHEMA_MISMATCH
10289+
eng "Found files with mismatched schemas."
10290+
10291+
ER_LH_OOM
10292+
eng "Insufficient memory."
10293+
10294+
ER_LH_WARN_INFER_SKIPPED_LINES
10295+
eng "Skipped %lu line(s) due to mismatched num of cols."
10296+
10297+
ER_LH_WARN_INFER_SKIPPED_FILES
10298+
eng "Skipped %lu file(s) due to mismatched num of cols."
10299+
10300+
ER_LH_INFER_FILE_HAS_NO_DATA
10301+
eng "File %s is skipped because it has no valid data. File is either empty or all rows are skipped."
10302+
10303+
ER_LH_INFER_NO_DATA
10304+
eng "No valid data found for processing."
10305+
10306+
ER_LH_INFER_NO_FILES
10307+
eng "No valid files found for processing."
10308+
10309+
ER_LH_WARN_INFER_USE_DEFAULT_COL_NAMES
10310+
eng "Used default column names for column index(s) %s as they are %s."
10311+
10312+
ER_LH_PARQUET_CANNOT_READ_HEADER
10313+
eng "File %s: Unable to read Parquet header."
10314+
10315+
ER_LH_INFER_WARN_GOT_EXCEPTION
10316+
eng "Got an exception while trying to process file task."
10317+
10318+
ER_LH_AVRO_CANNOT_PARSE_HEADER
10319+
eng "File %.*s: Could not parse avro header. Probably corrupted avro file."
10320+
10321+
ER_LH_PARQUET_CANT_OPEN_FILE
10322+
eng "Parquet reader cannot open %s. %s"
10323+
1013210324
#
1013310325
# End of 8.1+ error messages (server-to-client).
1013410326
# Do NOT add messages intended for the error log above!

0 commit comments

Comments
 (0)