<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/did-you-snow-1-snowflake-sequence-does-not-guarantee-gap-free-numbers-why--v73aeoch7" -->

---
title: Did You Snow? #1—Snowflake Sequence does not guarantee...
description: Snowflake sequences do not guarantee gap-free numbers. The ORDER vs NOORDER behavior does not affect the gaps in sequence numbers. To generate a guaranteed...
canonical: https://daily.dev/posts/did-you-snow-1-snowflake-sequence-does-not-guarantee-gap-free-numbers-why--v73aeoch7
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Did You Snow? #1—Snowflake Sequence does not guarantee gap-free numbers. Why? | daily.dev
og:description: Snowflake sequences do not guarantee gap-free numbers. The ORDER vs NOORDER behavior does not affect the gaps in sequence numbers. To generate a guaranteed...
og:url: https://daily.dev/posts/did-you-snow-1-snowflake-sequence-does-not-guarantee-gap-free-numbers-why--v73aeoch7
og:image: https://api.daily.dev/og/posts/v73aeoch7.png
og:image:alt: Did You Snow? #1—Snowflake Sequence does not guarantee gap-free numbers. Why?
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Did You Snow? #1—Snowflake Sequence does not guarantee gap-free numbers. Why?

**[Snowflake Community](https://daily.dev/sources/snowflake_comm)** · 3 min read · 0 upvotes · 0 comments

## Summary

Snowflake sequences do not guarantee gap-free numbers. The ORDER vs NOORDER behavior does not affect the gaps in sequence numbers. To generate a guaranteed contiguous sequence of numbers, one potential solution is to use the ROW_NUMBER() window function.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://medium.com/snowflake/did-you-snow-1-sequences-does-not-guarantee-gap-free-numbers-why-cd6d2f74c0ec>

---

Tags: [#big-data](https://daily.dev/tags/big-data), [#snowflake](https://daily.dev/tags/snowflake)

[View this post on daily.dev](https://daily.dev/posts/did-you-snow-1-snowflake-sequence-does-not-guarantee-gap-free-numbers-why--v73aeoch7)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Did You Snow? #1—Snowflake Sequence does not guarantee gap-free numbers. Why?","url":"https://daily.dev/posts/did-you-snow-1-snowflake-sequence-does-not-guarantee-gap-free-numbers-why--v73aeoch7","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/did-you-snow-1-snowflake-sequence-does-not-guarantee-gap-free-numbers-why--v73aeoch7"},"datePublished":"2024-05-10T21:23:40.535Z","dateModified":"2024-05-10T21:23:39.600Z","description":"Snowflake sequences do not guarantee gap-free numbers. The ORDER vs NOORDER behavior does not affect the gaps in sequence numbers. To generate a guaranteed...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/fa6ed8af6795f30d14de1f2e6b67fd60?_a=AQAEuiZ","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/fa6ed8af6795f30d14de1f2e6b67fd60?_a=AQAEuiZ","isAccessibleForFree":true,"articleSection":"Snowflake Community","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Snowflake Community","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/3eb5260f70bb4653be0f9581c0d937c8","url":"https://daily.dev/sources/snowflake_comm"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/did-you-snow-1-snowflake-sequence-does-not-guarantee-gap-free-numbers-why--v73aeoch7","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"big-data,snowflake","timeRequired":"PT3M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Snowflake Community","item":"https://daily.dev/sources/snowflake_comm"},{"@type":"ListItem","position":3,"name":"Did You Snow? #1—Snowflake Sequence does not guarantee gap-free numbers. Why?"}]}
```

