ExamGecko
Question list
Search
Search

Question 145 - SnowPro Core discussion

Report
Export

A table needs to be loaded. The input data is in JSON format and is a concatenation of multiple JSON documents. The file size is 3 GB. A warehouse size small is being used. The following COPY INTO command was executed:

COPY INTO SAMPLE FROM @~/SAMPLE.JSON (TYPE=JSON)

The load failed with this error:

Max LOB size (16777216) exceeded, actual size of parsed column is 17894470.

How can this issue be resolved?

A.
Compress the file and load the compressed file.
Answers
A.
Compress the file and load the compressed file.
B.
Split the file into multiple files in the recommended size range (100 MB - 250 MB).
Answers
B.
Split the file into multiple files in the recommended size range (100 MB - 250 MB).
C.
Use a larger-sized warehouse.
Answers
C.
Use a larger-sized warehouse.
D.
Set STRIP_OUTER_ARRAY=TRUE in the COPY INTO command.
Answers
D.
Set STRIP_OUTER_ARRAY=TRUE in the COPY INTO command.
Suggested answer: B

Explanation:

The error ''Max LOB size (16777216) exceeded'' indicates that the size of the parsed column exceeds the maximum size allowed for a single column value in Snowflake, which is 16 MB. To resolve this issue, the file should be split into multiple smaller files that are within the recommended size range of 100 MB to 250 MB. This will ensure that each JSON document within the files is smaller than the maximum LOB size allowed. Compressing the file, using a larger-sized warehouse, or setting STRIP_OUTER_ARRAY=TRUE will not resolve the issue of the column size exceeding the maximum allowed.

Reference:COPY INTO Error during Structured Data Load: ''Max LOB size (16777216) exceeded...''

asked 23/09/2024
Muneer Deers
43 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first