{
  "id": "data/snowflake-semi-structured-field-exceeds-limit",
  "signature": "Snowflake: Error parsing JSON — Object size exceeds maximum length of 16777216 bytes",
  "signature_zh": "Snowflake：解析JSON错误 — 对象大小超过16777216字节的最大长度",
  "regex": "Object size exceeds maximum length of \\d+ bytes",
  "domain": "data",
  "category": "data_error",
  "subcategory": null,
  "root_cause": "A single JSON object in a VARIANT column exceeds the 16 MB size limit for semi-structured data fields in Snowflake.",
  "root_cause_type": "generic",
  "root_cause_zh": "VARIANT列中的单个JSON对象超过了Snowflake中半结构化数据字段的16 MB大小限制。",
  "versions": [
    {
      "version": "Snowflake 7.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Snowflake 8.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Increasing the VARIANT column size or using a different data type like TEXT",
      "why_fails": "Snowflake's semi-structured limit is a hard limit; changing column type does not bypass it.",
      "fail_rate": 1.0,
      "condition": "",
      "sources": []
    },
    {
      "action": "Compressing the JSON data before loading",
      "why_fails": "Compression reduces storage but the parsed object size remains the same; the limit is on the parsed object, not the file.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Split the large JSON object into multiple smaller objects (e.g., array of objects) and load them as separate rows using FLATTEN.",
      "success_rate": 0.9,
      "how": "Split the large JSON object into multiple smaller objects (e.g., array of objects) and load them as separate rows using FLATTEN.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Store the JSON as a TEXT column (VARCHAR) instead of VARIANT, then use PARSE_JSON() only when querying smaller subsets.",
      "success_rate": 0.8,
      "how": "Store the JSON as a TEXT column (VARCHAR) instead of VARIANT, then use PARSE_JSON() only when querying smaller subsets.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "将大的JSON对象拆分为多个较小的对象（例如，对象数组），并使用FLATTEN函数将其加载为单独的行。",
    "将JSON存储为TEXT列（VARCHAR）而非VARIANT，仅在查询较小的子集时使用PARSE_JSON()。"
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://docs.snowflake.com/en/sql-reference/data-types-semistructured#size-limits",
  "official_doc_section": null,
  "error_code": "100132",
  "verification_tier": "ai_generated",
  "confidence": 0.88,
  "fix_success_rate": 0.85,
  "resolvable": "true",
  "first_seen": "2023-06-01",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}