LOAD_FILE_ERROR error condition

SQLSTATE: 22KD1

Error reading the content of a FILE value. Use try_cast(... AS STRING|BINARY) to skip failures and get a null value instead.

CONTENT_TOO_LARGE

Cannot read the file at path <path>: the file size <size> bytes exceeds the maximum <maxBytes> bytes allowed.

FAILED_TO_READ_FILE

Failed to read the file at path <path>. Cause: <cause>. Refer to the stack trace for details.

FILE_NOT_EXISTS

The file at path <path> does not exist.

INVALID_BYTE_RANGE

Cannot read the file at path <path>: the requested byte range of <length> bytes at offset <offset> lies outside the file, whose length is <fileLength> bytes.

INVALID_FILE_REFERENCE

The FILE value references no data. The Parquet FILE type requires either uri or inline to be set, and this value sets neither, which makes it invalid.

OFFSET_WITHOUT_SIZE

The FILE value sets offset to <offset> but does not set size. The Parquet FILE type requires size whenever offset is set, because a byte range needs a length; size may be omitted only for a whole-file reference.

READ_UNAUTHORIZED

User is not authorized to read the file at path <path>.