alt.hn

7/22/2026 at 1:19:12 AM

Snowflake's string min/max is truncated to ~40 chars, and it's undocumented

https://gist.github.com/wubx/c7a7d754ec5ec7d84b3aa7945bafec3f

by river_wu

7/22/2026 at 1:19:35 AM

    Author here. This came out of reproducing a Databend issue about the same
    class of bug, then I got curious where Snowflake's own limit sits since it's
    not in the docs.

    Two things I want to be upfront about:
    1. It's a black-box measurement — inferred from partitions_scanned, not from
       source. The exact byte boundary interacts with how you encode the tail
       (left-padded serials shift the first significant digit), so read it as
       "~40, order of magnitude," not a hard constant.
    2. Almost certainly version-dependent (tested 10.25.101).

    If anyone has a cleaner probe that nails the exact byte count, or works at
    Snowflake and can say whether ~40 is intentional, I'd love to know.

by river_wu