<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Oleksii Bielov on Medium]]></title>
        <description><![CDATA[Stories by Oleksii Bielov on Medium]]></description>
        <link>https://medium.com/@oleksii.bielov?source=rss-e627007bf011------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*668bvn1hir8Jij4UfhxAhg.jpeg</url>
            <title>Stories by Oleksii Bielov on Medium</title>
            <link>https://medium.com/@oleksii.bielov?source=rss-e627007bf011------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 06:46:59 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@oleksii.bielov/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Query Time Ranges With Snowflake’s PERIOD Data Type]]></title>
            <link>https://medium.com/snowflake/query-time-ranges-with-snowflakes-period-data-type-ce229d2306bd?source=rss-e627007bf011------2</link>
            <guid isPermaLink="false">https://medium.com/p/ce229d2306bd</guid>
            <category><![CDATA[data-type]]></category>
            <category><![CDATA[snowflake]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[time-series-analysis]]></category>
            <category><![CDATA[data-engineering]]></category>
            <dc:creator><![CDATA[Oleksii Bielov]]></dc:creator>
            <pubDate>Tue, 22 Sep 2026 14:01:05 GMT</pubDate>
            <atom:updated>2026-09-22T14:01:05.361Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h3InrxTRgz9ueaZIvNJLeQ.png" /></figure><p><em>Use native temporal ranges to look up effective records, join histories and allocate fleet operating hours.</em></p><p>A rate changes on April 1. A report for February should still use the old rate. With separate start and end columns, every query has to reconstruct that rule, including whether the end date counts.</p><p>Snowflake’s PERIOD data type stores those bounds as one typed value. Its SQL functions let you ask whether a date falls within a range, whether two ranges overlap and which part they share. <a href="https://docs.snowflake.com/en/sql-reference/data-types-period">PERIOD</a> and its <a href="https://docs.snowflake.com/en/sql-reference/functions-period">functions</a> are generally available.</p><p>The examples below show three applications: effective-date lookups, historical joins and fleet duty-time reporting.</p><h4><strong>A time range with explicit boundaries</strong></h4><p>An INTERVAL describes a duration, such as eight hours. A PERIOD identifies a range with a beginning and an end, such as a shift from Sunday at 10 p.m. to Monday at 6 a.m.</p><p>Declare the element type explicitly: PERIOD(DATE), PERIOD(TIME) or a timestamp variant such as PERIOD(TIMESTAMP_NTZ). Snowflake also supports TIMESTAMP_LTZ and TIMESTAMP_TZ bounds, with fractional-second precision from 0 to 9 for time and timestamp types.</p><p>You can construct a period from two values of the same temporal type:</p><pre>SELECT PERIOD_CONSTRUCT(<br>    DATE &#39;2026-01-01&#39;, DATE &#39;2026-04-01&#39;<br>) AS valid_during;</pre><p>The result is [2026–01–01, 2026–04–01). The opening bracket includes January 1; the closing parenthesis excludes April 1. Every PERIOD uses this half-open convention. Consecutive ranges can meet at the same boundary without overlapping.</p><p>Both bounds must be finite, and the beginning must precede the end. Empty or reversed ranges are invalid. A NULL bound does not mean “still active.” For ongoing records, choose a documented finite ending-bound convention appropriate to your application.</p><h4><strong>Find the version effective on a business date</strong></h4><p>Reference data often has an effective date that differs from its arrival date. A rate loaded today might apply next month. A correction received next week might apply to a date in the past.</p><p>For an effective-date lookup, store each version’s business-validity range alongside its value. This example has a 5% rate through March and a 6% rate starting April 1:</p><pre>WITH rate_history AS (<br>    SELECT &#39;RATE_A&#39; AS rate_id, 0.05 AS rate,<br>           PERIOD(DATE) &#39;[2026-01-01, 2026-04-01)&#39; AS valid_during<br>    UNION ALL<br>    SELECT &#39;RATE_A&#39;, 0.06,<br>           PERIOD(DATE) &#39;[2026-04-01, 2027-01-01)&#39;<br>)<br>SELECT rate_id, rate<br>FROM rate_history<br>WHERE PERIOD_CONTAINS(valid_during, DATE &#39;2026-02-15&#39;);</pre><p>The query returns RATE_A with 0.05. Change the lookup date to April 1 and it returns 0.06. The boundary belongs only to the new version.</p><p>This pattern also applies to effective-dated premiums or contract terms. Your ingestion logic still creates and closes versions. PERIOD validates each range, but it does not prevent overlapping versions for the same business key.</p><h4><strong>Join histories on the same business date</strong></h4><p>A contract’s status and overdue balance can change on different days. A historical report needs the version of each that applied on its reporting date. Joining their latest rows would answer a different question.</p><p>Assume contract_status and overdue_balances each have a valid_during column of type PERIOD(DATE). The following query aligns both histories to September 16:</p><pre>WITH reporting_date AS (<br>    SELECT DATE &#39;2026-09-16&#39; AS business_date<br>)<br>SELECT status_history.contract_id, report.business_date,<br>       status_history.status, balance_history.overdue_amount<br>FROM reporting_date AS report<br>JOIN contract_status AS status_history<br>  ON PERIOD_CONTAINS(status_history.valid_during, report.business_date)<br>LEFT JOIN overdue_balances AS balance_history<br>  ON balance_history.contract_id = status_history.contract_id<br> AND PERIOD_CONTAINS(balance_history.valid_during, report.business_date);</pre><p>For a contract marked ACTIVE throughout September with an overdue balance of 250 in [2026-09-10, 2026-09-20), the September 16 report returns ACTIVE and 250. If no balance version covers that date, the left join preserves the contract and returns NULL for the unmatched balance.</p><p>Each history should have at most one applicable version per key and date. If you also track when information was recorded, filter both histories for the chosen recorded-time snapshot. Your pipeline remains responsible for capturing that history. Replacing bound comparisons with PERIOD predicates improves readability; any performance benefit needs workload-specific testing.</p><h4><strong>Allocate fleet duty time across reporting weeks</strong></h4><p>A driver works from Sunday at 10 p.m. until Monday at 6 a.m. With a Monday-start reporting week, two hours belong to the previous week and six to the new one. Assigning all eight hours to the shift’s start date misstates both weekly totals.</p><p>Represent the duty window and each reporting week as timestamp periods, then intersect them. This query calculates the contribution to the new week:</p><pre>WITH windows AS (<br>    SELECT<br>        PERIOD(TIMESTAMP_NTZ)<br>          &#39;[2026-09-13 22:00:00, 2026-09-14 06:00:00)&#39; AS duty,<br>        PERIOD(TIMESTAMP_NTZ)<br>          &#39;[2026-09-14 00:00:00, 2026-09-21 00:00:00)&#39; AS workweek<br>), allocation AS (<br>    SELECT PERIOD_INTERSECT(duty, workweek) AS segment<br>    FROM windows<br>)<br>SELECT DATEDIFF(&#39;second&#39;, PERIOD_BEGIN(segment), PERIOD_END(segment))<br>           / 3600.0 AS hours_in_workweek<br>FROM allocation;</pre><p>The result is 6. Intersecting with the previous week returns 2, preserving all eight hours. For a fleet-wide report, join duty records to every reporting week they overlap before summing the allocated hours.</p><p>These totals can feed overtime-exposure reporting and staffing decisions. The same intersection pattern can measure how much of a vehicle’s maintenance window falls inside a planned operating window.</p><p>The example assumes a single, consistent timestamp basis without an offset change. Production systems need an explicit time-zone policy and authoritative duty records. Trip telemetry alone does not establish paid time or hours-of-service compliance; those rules remain separate from range allocation. Here, DATEDIFF measures seconds between the extracted bounds. It is not a PERIOD-to-INTERVAL conversion.</p><h4><strong>Start with one range query</strong></h4><p>Choose an existing effective-date lookup or overlap calculation and compare it with the equivalent PERIOD expression. This also gives migrations a native target for supported range operations previously represented with strings or split bounds. Validate shared boundaries and missing history: inclusive BETWEEN predicates need particular care when moving to exclusive ending bounds.</p><p>Use the <a href="https://docs.snowflake.com/en/sql-reference/data-types-period">PERIOD documentation</a> for supported types and limitations, and the <a href="https://docs.snowflake.com/en/sql-reference/functions-period">function reference</a> for examples of each operation.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ce229d2306bd" width="1" height="1" alt=""><hr><p><a href="https://medium.com/snowflake/query-time-ranges-with-snowflakes-period-data-type-ce229d2306bd">Query Time Ranges With Snowflake’s PERIOD Data Type</a> was originally published in <a href="https://medium.com/snowflake">Snowflake Builders Blog: Data Engineers, App Developers, AI, &amp; Data Science</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Product Manager Role in the era of AI]]></title>
            <link>https://medium.com/@oleksii.bielov/what-i-learned-from-building-a-solution-on-snowflake-3c458341ba66?source=rss-e627007bf011------2</link>
            <guid isPermaLink="false">https://medium.com/p/3c458341ba66</guid>
            <category><![CDATA[snowflake]]></category>
            <category><![CDATA[product-management]]></category>
            <category><![CDATA[solutions]]></category>
            <category><![CDATA[routing]]></category>
            <dc:creator><![CDATA[Oleksii Bielov]]></dc:creator>
            <pubDate>Tue, 14 Apr 2026 12:29:24 GMT</pubDate>
            <atom:updated>2026-04-14T16:56:47.473Z</atom:updated>
            <content:encoded><![CDATA[<p>As a product manager, I usually work with engineers, with teams of real people who write code. That is still how I work at Snowflake, where I am responsible for data types such as <a href="https://docs.snowflake.com/en/sql-reference/data-types-numeric#label-data-type-decfloat">DECFLOAT</a>, <a href="https://docs.snowflake.com/en/sql-reference/data-types-user-defined">User Defined Types</a>, <a href="https://docs.snowflake.com/en/sql-reference/data-types-structured">Structured Types</a>, <a href="https://docs.snowflake.com/en/sql-reference/data-types-geospatial">geospatial types</a> like GEOGRAPHY and GEOMETRY, and other core features. At the same time, over the last half year, a few of us across Product, Solution Innovation (<a href="https://medium.com/@becky.oconnor">Becky O&#39;Connor</a>), and Professional Services (<a href="https://medium.com/@piotrpaczewski">Piotr Paczewski</a>) were building a solution together. It was not anyone’s main job, we were all carving out slices of bandwidth for it, and that is probably one reason why it changed how I think about both building and product management.</p><blockquote>In this article, a solution is something you run on top of Snowflake, using Snowflake capabilities to create a new capability.</blockquote><p>In software development, the gap between deciding that a use case matters and having it live is still absurdly full of handoffs. There are discovery, solutioning, architecture reviews, prototyping, implementation planning, delivery, and then maybe real adoption. Often, dozens of people get involved. Sometimes hundreds. If AI is really going to change software, then part of the change has to happen here. We need to short-circuit that path. If previously engineering teams had to run through the whole cycle to get to a new working software product, what should change so they can get the first version of the product running faster?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*He8Ta32GoLV10fZmpg0NRQ.png" /><figcaption>Screenshot of the Routing Service on Snowflake</figcaption></figure><p>This is one of the reasons why we came to the solution packages. Platform companies are very good at explaining features, but customers don&#39;t buy feature lists. They want a solution they can recognize, install, and extend. That is why we started thinking about accelerators that take a business problem, package the architecture, code, and installer, and let partners or customers adapt the baseline rather than starting from scratch. That is a different motion from feature releases, and I think it is much closer to how AI-era platform companies will need to operate.</p><p>We started from a straightforward idea. Thousands of Snowflake customers have fleets of moving assets, which they want to track, guide, and optimize operations. So we thought that bringing a routing service into Snowflake by adding functions that calculate travel time, travel distance, and the actual route between point A and point B would be extremely valuable, especially if customers can get the whole thing through a <a href="https://github.com/Snowflake-Labs/sfguide-create-a-route-optimisation-and-vehicle-route-plan-simulator">Cortex Code Skill</a> that installs the required infrastructure for them within 30 minutes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-ieKTLMS2x0AKpQDQ9X-Wg.png" /><figcaption>Region Builder for the Routing Service Built on Snowflake</figcaption></figure><p>If you look at routing as a native product category, the question of whether Snowflake should offer it is complicated. There are giants already on the market, and open-source routing engines already exist (for example, <a href="https://openrouteservice.org/">openrouteservice</a>), and building the whole thing as a core platform bet would probably never get funding. The effort is high, the competition is strong, and there are plenty of reasons to say no.</p><p>But once we treated it as a solution on top of Snowflake, the question became much more practical: can we offer customers a Routing Service that would be useful for at least a fraction of use cases, be 10x cheaper than commercial offerings, and run close to where their data already is? Today, the answer is yes. We already had most of the building blocks: containers to run an open-source routing service, external integrations to pull map data, and other components needed to run a production-grade UI. In a more traditional setup, connecting all of this into something usable would have required a proper engineering team and a dedicated roadmap. In our case, a small group did it over a few months, with <a href="https://www.snowflake.com/en/product/features/cortex-code/">Cortex Code</a> doing a meaningful part of the implementation work. At some point, it stopped feeling like a helper and started feeling like part of the team.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wPQRhQwWeL357QZAdfMOdw.png" /><figcaption>Demo of the Route Deviation Analysis Use Case</figcaption></figure><p>That is also where AI changed product economics. If AI removes a big part of the implementation cost, it eventually changes what is rational to build. I don&#39;t think innovation now necessarily means adding more features and hoping the sum becomes valuable, it is rather about asking what a very small team can build now, on top of the platform we already have. And it was quite an interesting path to leverage what Snowflake already has: the analytics platform, connected data, container services, and the fact that customer data is already there. We did not create a new core feature, instead, we used the platform to make a previously separate capability available much closer to the data.</p><p>This is where it became personal for me. Usually, I work with an engineering team, but this time the shape of the work was different. I was much closer to implementation than I normally am. I was writing backend and frontend code and using AI in a way that materially reduced the distance between the product idea and working software. That is why I started asking myself: if I’m not working with a typical engineering team in the usual way, am I still a real product manager? And if we build a solution that uses Snowflake products rather than a native Snowflake product, is that still product management? A forward-deployed Product Manager?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kUDdeUeeW8awkjdpegCz_A.png" /><figcaption>Travel Time Calculation for a Matrix of Hexagons</figcaption></figure><p>I still don&#39;t have a perfect answer. What I do know is that once I start building this way, product gaps become visible very quickly, because we see exactly which missing features would make the solution easier to install, repeat, and operate. Redeployment is one example. I’m pretty sure that data engineers don&#39;t want to rerun the whole skill that installs the Routing Service every time something goes wrong, so we started thinking about GitHub integration, versioning, storing build results, and cleaner deployment patterns across different environments. UI is another example. Streamlit is often the default answer because it is simple for developers, but AI changes that trade-off as well. When frontend work becomes much easier across languages and frameworks, “use this because it is simpler” is no longer such a strong argument. That was exactly the choice we had in front of us: a Streamlit dashboard that was simple but limited, or a richer React UI that used to be much harder than it is now.</p><p>There is a lot of talk around the SaaS-pocalypse. I often think: if that happens, what would that look like, what would be the place of Snowflake in this new world, and what would my role as a Product Manager within Snowflake be?</p><p>Many software products are some combination of data, workflows, UI, and logic. A surprising number of them also have open-source analogs. So if I’m an engineer in an enterprise company and my data already lives in Snowflake, if Snowflake already has the right features, and if AI lowers the cost of stitching those features together, then the logical step for me as an engineer in that enterprise would be to build those products inside the data platform and use open source whenever possible. And if the data platform can provide the right primitives, and ideally a baseline solution that I can install quickly using <a href="https://github.com/Snowflake-Labs/sfguide-create-a-route-optimisation-and-vehicle-route-plan-simulator">Cortex Code Skill</a> and extend based on my needs, then I have everything in my hands to demonstrate how AI can save time and money for my company.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d89EqHdR48zQ_aw7P_No2A.png" /><figcaption>Travel Time Visualisation using a Matrix of Hexagons</figcaption></figure><p>That takes me back to product management. If I’m trying to help our customers save time and money with AI by providing pre-packaged extendable solutions, I still have to decide how the solution should behave, what the right workflow is, what should be opinionated and what should be configurable, what should be installed automatically, what needs documentation, and which platform gaps will become visible when customers actually start using and extending what we offer them. That is product work, even if we call the final artifact a solution rather than a product.</p><p>So yes, I started seeing my role differently. I started using AI in a way that felt much closer to working with an engineering team than I expected, and I ended up with a question I still can&#39;t answer cleanly: product manager of what exactly?</p><p>Maybe this is still product management, just in a different shape. Maybe PMs will spend more time helping small cross-functional teams build initial versions, package baseline solutions, expose missing platform components, and work simultaneously across product, solution engineering, and marketing. Maybe that is already the job. I am still figuring that out, but after building this with the team, I can&#39;t look at SaaS in the same way, and I can&#39;t look at my role in the same way either.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3c458341ba66" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Give Your Data a Name]]></title>
            <link>https://medium.com/snowflake/give-your-data-a-name-ea1b02ff9bed?source=rss-e627007bf011------2</link>
            <guid isPermaLink="false">https://medium.com/p/ea1b02ff9bed</guid>
            <category><![CDATA[user-defined-types]]></category>
            <category><![CDATA[semantic-model]]></category>
            <category><![CDATA[semantic-view]]></category>
            <category><![CDATA[snowflake]]></category>
            <dc:creator><![CDATA[Oleksii Bielov]]></dc:creator>
            <pubDate>Thu, 26 Mar 2026 21:01:00 GMT</pubDate>
            <atom:updated>2026-03-26T21:01:00.669Z</atom:updated>
            <content:encoded><![CDATA[<h4><em>The semantic model explains business metrics. User-defined types describe the data on which those metrics are built.</em></h4><p>Everyone is talking about the semantic layer today. The reason is AI. Semantic models let teams store business concepts directly in the database and use them with AI products. Tableau is framing semantics as an AI-infused layer for business language. ThoughtSpot is talking about an agentic semantic layer. Data Warehouses are positioning business semantics as unified and open semantics for BI and AI. That convergence tells us that semantics is becoming core infrastructure for AI, analytics, and governed self-service.</p><p>As organizations accelerate AI adoption, weaknesses in metadata management, stewardship, and communication still threaten trust in data. That is why user-defined types, or UDTs, deserve more attention. Semantic models are the right place to define business metrics, entities, and relationships. But not all meaning belongs only in a semantic model. Some of it belongs lower in the stack, right in the type system, where tables, functions, procedures, and application interfaces are defined. And as AI systems increasingly rely on explicit schemas, that kind of typed meaning is getting more valuable.</p><p>In Snowflake, a recently introduced <a href="https://docs.snowflake.com/en/sql-reference/data-types-user-defined">User-Defined Type</a> is a schema-level object based on an existing Snowflake data type. It can be used anywhere a type can be used, including column definitions, function and procedure definitions, and cast expressions. UDTs can be built on structured OBJECT types, so they can serve as aliases for complex structures.</p><p>UDTs make schemas more expressive without forcing teams to invent a separate modeling system for every low-level concept. A <em>customer_id</em> can be more than a VARCHAR. An <em>address</em> can be more than four loosely related columns repeated across tables. A <em>currency_code</em> can be something the schema names and reuses consistently. UDTs can simplify schema maintenance and improve data quality, and UDT values coerce to their base types in normal expression evaluation, which means they fit naturally into SQL workflows.</p><p>A useful way to think about it is this: semantic models define business meaning at query time, while UDTs define domain meaning at design time. Semantic models are the recommended way to define business semantics, with support for metrics, entities, relationships, privileges, sharing, and metadata catalog integration. UDTs complement that by making the underlying schema more legible and reusable before a semantic model is ever built. They are not a substitute for the semantic layer. They are the substrate under it. Consider a simple example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cyUscTobZMqnCfKjVlV0ow.jpeg" /></figure><p>Imagine a physical model sitting beneath a semantic model. The semantic model can define metrics like gross revenue, average order value, customer lifetime value, and cohort retention. It can define entities and relationships for customers, orders, products, and regions. But because the underlying tables already carry reusable domain types, the model starts from a cleaner base. IDs look like IDs. Addresses have a single shape. Shared concepts are named once and reused everywhere. In practice, that can make semantic modeling less brittle.</p><p>You can see how this plays out across different kinds of companies.</p><ul><li>A SaaS company might define <em>workspace_id</em>, <em>customer_id</em>, <em>plan_code</em>, and <em>billing_currency</em> as reusable UDTs across events, subscriptions, invoices, and support workflows. The semantic model on top of those tables then defines MRR, churn, and activation metrics for BI and AI.</li><li>A financial services team might define <em>account_id</em>, <em>instrument_id</em>, <em>currency_code</em>, and a structured <em>counterparty_address</em> type. The semantic layer then answers questions about exposure, balances, and profitability, while the physical schema stays explicit about the business objects being modeled.</li><li>A healthcare network might define the types <em>patient_id</em>, <em>provider_id</em>, <em>icd10_code</em>, and <em>service_location</em>. The semantic model can then own the business logic for admissions, utilization, and readmission rates, while the raw schema preserves a durable vocabulary of domain entities.</li></ul><p>These examples are intentionally simple to showcase the durable pattern -semantic models answer business questions, while UDTs reduce ambiguity in the tables and interfaces that those models depend on.</p><p>Operational side matters too. Snowflake exposes UDTs through <strong>CREATE TYPE</strong>, <strong>SHOW TYPES</strong>, <strong>DESCRIBE TYPE</strong>, and the TYPES views in Information Schema and Account Usage. That means teams can inspect, catalog, audit, and govern their domain types using the same metadata surfaces they already rely on for other database objects.</p><p>For many enterprise teams, the concept is not new. Oracle supports domains for attaching business meaning to standard data types, and has long supported object types through CREATE TYPE for more structured data models. DB2’s distinct types similarly allow teams to define named types on top of built-in primitives. Snowflake UDTs use the same general pattern: reusable, named types that make schemas more expressive and easier to govern.</p><p>The timing is not accidental. Snowflake recommends <a href="https://docs.snowflake.com/en/user-guide/views-semantic/overview">semantic views</a> as the preferred approach for defining business semantics, and they can be used with Cortex Analyst. It also recently introduced a public preview for exporting semantic views to Tableau, so the same metrics, dimensions, and business logic can be consumed in BI without duplicating semantics. Beyond Snowflake, the Open Semantic Interchange specification is now live as a vendor-neutral model for sharing semantic layer constructs across tools, with a working group that includes companies such as dbt Labs, Salesforce, and ThoughtSpot. Meanwhile, AI platforms are reinforcing the value of explicit schemas in a different form: OpenAI’s Structured Outputs feature guarantees adherence to developer-supplied JSON Schema. Put those signals together, and a broader pattern emerges. The future is systems that work because their structure and meaning are explicit enough for humans and machines to share.</p><p>That is why UDTs matter in Snowflake right now. They let teams put durable meaning closer to the data itself, YAML, or prompt engineering. In a world of semantic layers, AI agents, and increasingly portable semantic standards, that is a meaningful design choice. The semantic model tells the business what a metric means. The UDT helps tell the platform what a value is. The best data systems will need both.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ea1b02ff9bed" width="1" height="1" alt=""><hr><p><a href="https://medium.com/snowflake/give-your-data-a-name-ea1b02ff9bed">Give Your Data a Name</a> was originally published in <a href="https://medium.com/snowflake">Snowflake Builders Blog: Data Engineers, App Developers, AI, &amp; Data Science</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Simplifying Schema Design with DECFLOAT: One Numeric Type to Rule Them All]]></title>
            <link>https://medium.com/snowflake/simplifying-schema-design-with-decfloat-one-numeric-type-to-rule-them-all-2040f90d1552?source=rss-e627007bf011------2</link>
            <guid isPermaLink="false">https://medium.com/p/2040f90d1552</guid>
            <category><![CDATA[snowflake]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[database-design]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[data-architecture]]></category>
            <dc:creator><![CDATA[Oleksii Bielov]]></dc:creator>
            <pubDate>Thu, 11 Dec 2025 20:02:16 GMT</pubDate>
            <atom:updated>2025-12-11T20:02:16.540Z</atom:updated>
            <content:encoded><![CDATA[<p>Snowflake’s new numeric data type bridges the gap between rigid fixed-point math and fuzzy binary floating-point calculations. Here is a deep dive into <em>DECFLOAT</em> and why it changes the game for data engineers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EavJyRydVx4ONCugtdXP7Q.png" /><figcaption><em>The “impossible-possible numeric triangle” showing the features of the DECFLOAT type.</em></figcaption></figure><p>For decades, anyone working with numeric data in SQL databases has faced a fundamental dilemma. You usually have two choices, and neither feels completely right for every situation.</p><p>On one side, you have the <strong>binary floating-point type</strong> <strong><em>FLOAT</em></strong>. This one is incredibly flexible, capable of handling microscopic values and astronomical sums in the same column. But they come with a hidden cost: binary approximation errors. Try adding 0.1 + 0.2 in standard floating-point math, and you won’t get exactly <em>0.3</em>. You get <em>0.30000000000000004</em>. In finance or high-precision scientific research, that trailing “4” is unacceptable.</p><p>On the other side, you have the <strong>fixed-point type NUMBER(p,s)</strong>. This one is precise. They represent money exactly as you expect. But they are rigid. You must declare their precision (total digits) and scale (digits after the decimal) upfront. If you define a column as <em>NUMBER(10,2)</em> to store currency, and suddenly you need to ingest an exchange rate with six decimal digits, your data load will fail or truncate valuable information.</p><p>Data engineers have long been stuck between the “fuzzy flexibility” of floats and the “brittle precision” of fixed numbers. Snowflake has introduced a powerful solution to this standoff: the <em>DECFLOAT</em> data type.</p><h3>What is DECFLOAT?</h3><p><em>DECFLOAT</em> stands for <strong>Decimal Floating-Point</strong>.</p><p>It sounds like a contradiction in terms, but it represents the best of both worlds. It is a numeric type that computes exactly like base-10 human math (no binary approximation surprises), yet allows the decimal point to “float” freely, accommodating vastly different magnitudes of numbers in the same column without requiring predefined scale parameters.</p><p>In Snowflake, <em>DECFLOAT</em> is implemented with a substantial <strong>precision of 38 digits</strong>.</p><p>This means a single <em>DECFLOAT</em> value can hold up to 38 significant base-10 digits. The position of the decimal point doesn’t cut into this count; it just indicates magnitude. Whether the number is sub-atomic or galactic in size, you have 38 digits of accuracy to describe it.</p><h3>The Comparison: Where DECFLOAT Fits In</h3><p>To understand the power of <em>DECFLOAT</em>, we need to visualize it alongside its older siblings.</p><h4>1. The Standard FLOAT (Binary Floating-Point)</h4><p>Standard floats use binary (base-2) scientific notation to approximate numbers. This is efficient for CPU hardware but problematic for human-centric data. Many numbers that look “clean” in decimal (like 0.1) result in repeating fractions in binary, leading to inevitable approximation errors when converted back.</p><ul><li><strong>Pros: </strong>Massive range, fixed storage size, fast calculations for physics/graphics.</li><li><strong>Cons:</strong> “Fuzzy” precision. Inaccurate for financial math.</li><li><strong>Snowflake Equivalent:</strong> <em>FLOAT.</em></li></ul><h4>2. The Standard NUMBER (Fixed-Point Decimal)</h4><p>Fixed-point decimals store numbers exactly as written in base-10. However, the “fixed” aspect is the limitation. You lock down the schema.</p><ul><li><strong>Pros: </strong>100% accurate representation of decimal values. Essential for currency.</li><li><strong>Cons: </strong>Rigid. If you declare <em>NUMBER(5,2)</em>, you can store 123.45. You cannot store 1234.5 (overflow error) and you cannot store 1.2345 (it will be rounded to 1.23).</li><li><strong>Snowflake Equivalent:</strong> <em>NUMBER(p,s)</em>.</li></ul><h4>3. The New DECFLOAT (Decimal Floating-Point)</h4><p><em>DECFLOAT</em> uses base-10 representations (like <em>NUMBER</em>) but scientific notation for storage (like <em>FLOAT</em>).</p><p>If you store 0.1 + 0.2 in a <em>DECFLOAT</em>, the answer is exactly 0.3. If you store a corporate cash balance of 12,345,678,901.23 and an FX rate of 0.0000349127 in the same <em>DECFLOAT</em> column, both values retain full 38-digit precision without any schema changes.</p><ul><li><strong>Pros: </strong>Base-10 accuracy <em>combined</em> with dynamic scale.</li><li><strong>Cons:</strong> Slightly larger storage footprint and computationally more intensive than pure binary <em>FLOATs</em> for heavy mathematical workloads not requiring decimal exactness.</li></ul><h3>Key Use Cases for DECFLOAT</h3><p>The introduction of <em>DECFLOAT</em> isn’t just a technical curiosity; it solves real-world data engineering problems.</p><h4>1. Financial Modeling and Currency Conversion</h4><p>This is the primary use case. Financial applications often involve multiplying large currency amounts (requiring scale for millions or billions) by highly precise exchange rates or interest factors (requiring many decimal digits).</p><p>Using <em>FLOAT</em> introduces approximation errors that auditors hate. Using <em>NUMBER</em> requires knowing the maximum possible scale of an exchange rate beforehand. <em>DECFLOAT</em> allows for exact currency math while accommodating rates that might be 1.05 today and 0.00034921 tomorrow.</p><h4>2. Heterogeneous Data Ingestion (The Data Lake Problem)</h4><p>Modern data platforms ingest semistructured data (JSON, Avro, XML) where schemas evolve rapidly.</p><p>Imagine ingesting IoT sensor data. One sensor version sends temperature as 23.5 C. The newer version sends it as 23.500012 C. If your target table uses <em>NUMBER(5,1)</em>, you lose data from the new sensors. If you use <em>FLOAT</em>, you introduce inaccuracy.</p><p><em>DECFLOAT</em> is the perfect target data type for raw ingestion layers where the scale of incoming numeric data is unpredictable, but accuracy cannot be compromised.</p><h4>3. Scientific Data Requiring “Human” Precision</h4><p>While binary floats are great for physics simulations, some scientific branches prefer base-10 exactness. If you are recording experimental data where readings fluctuate wildly between macro and micro scales, and you need to preserve exactly what the instrument reads without binary conversion artefacts, <em>DECFLOAT</em> is the superior choice.</p><h3>SQL in Action: Seeing the Difference</h3><p>To truly understand the advantage of <em>DECFLOAT</em>, let’s look at how it behaves in Snowflake code.</p><p><strong>Example 1: Creating a Table for Flexible Scale</strong> <br>Here we see how <em>DECFLOAT</em> handles the “Data Lake” problem. Notice how we don’t need to define precision (p,s) like we do with <em>NUMBER</em>.</p><pre>CREATE OR REPLACE TABLE raw_sensor_data (<br>    sensor_id INT,<br>    reading_timestamp TIMESTAMP,<br>    -- No precision/scale parameters needed here!<br>    raw_value DECFLOAT  <br>);<br><br>-- We can insert massive integers and microscopic fractions <br>-- into the exact same column without overflow or truncation.<br>INSERT INTO raw_sensor_data (sensor_id, raw_value) VALUES<br>    (1, 12345678901234567890),           -- Large Magnitude<br>    (2, 0.000000000000000000123456),     -- High Granularity<br>    (3, 100.55);                         -- Standard Decimal<br><br>SELECT * FROM raw_sensor_data;</pre><p><strong>Example 2: Avoiding Fixed-Point Truncation</strong> <br>If we had used a standard <em>NUMBER(10,2)</em> for currency, we would lose data if an exchange rate came in with 4 decimal digits. <em>DECFLOAT</em> preserves it all.</p><pre>-- Example: Comparing NUMBER vs DECFLOAT behavior<br>SELECT <br>    CAST(123.45678 AS NUMBER(10, 2)) AS fixed_truncation,<br>    CAST(123.45678 AS DECFLOAT)      AS flexible_preservation;<br><br>/*<br>   OUTPUT:<br>   fixed_truncation:      123.46     (Rounded/Lost Data)<br>   flexible_preservation: 123.45678  (Full Precision Kept)<br>*/</pre><p><strong>Example 3: Compare Float and Decfloat side-by-side</strong> <br>The <em>DECFLOAT</em> covers a much wider range while maintaining the full 38-digit precision.</p><pre>-- Example: Comparing FLOAT vs DECFLOAT behavior<br>CREATE OR REPLACE TABLE decfloat_sample (<br>  id INT,<br>  decfloat_val DECFLOAT,<br>  float_val FLOAT);<br><br>INSERT INTO decfloat_sample VALUES<br>  (<br>    1,<br>    DECFLOAT &#39;123e7000&#39;,<br>    FLOAT &#39;123e7000&#39; -- rounded to INF<br>  ),<br>  (<br>    2,<br>    12345678901234567890123456789::DECFLOAT,<br>    12345678901234567890123456789::FLOAT -- precision loss<br>  ),<br>  (<br>    3,<br>    &#39;-4.2e-5432&#39;::DECFLOAT,<br>    &#39;-4.2e-5432&#39;::FLOAT -- rounds to -0<br>  ),<br>  (<br>    4,<br>    &#39;1.00000000000000000000000000000000000014&#39;::DECFLOAT,<br>    &#39;1.00000000000000000000000000000000000014&#39;::FLOAT -- 1<br>  ),<br>  (<br>    5,<br>    &#39;1.00000000000000000000000000000000000015&#39;::DECFLOAT,<br>    &#39;1.00000000000000000000000000000000000015&#39;::FLOAT -- 1<br>  );</pre><h3>Conclusion</h3><p>For too long, data architects have had to compromise when defining numeric fields. We’ve either sacrificed precision for flexibility by using <em>FLOAT</em>, or sacrificed flexibility for precision by using <em>NUMBER</em>.</p><p>Snowflake’s <em>DECFLOAT</em> provides the hybrid solution. By offering 38 digits of base-10 precision with a floating scale, it handles the messy reality of modern data without forcing you to choose between being exact and being adaptable. While <em>NUMBER</em> remains best for strictly defined transactional schemas, and <em>FLOAT</em> remains king for raw computational speed, <em>DECFLOAT</em> is destined to become the new standard for analytical data warehousing where accuracy and flexibility are paramount.</p><p>For more information, check the <a href="https://docs.snowflake.com/en/sql-reference/data-types-numeric#decfloat">public documentation of the <em>DECFLOAT</em> type</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2040f90d1552" width="1" height="1" alt=""><hr><p><a href="https://medium.com/snowflake/simplifying-schema-design-with-decfloat-one-numeric-type-to-rule-them-all-2040f90d1552">Simplifying Schema Design with DECFLOAT: One Numeric Type to Rule Them All</a> was originally published in <a href="https://medium.com/snowflake">Snowflake Builders Blog: Data Engineers, App Developers, AI, &amp; Data Science</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Low-code spatial analysis based on H3 with CARTO and Snowflake]]></title>
            <link>https://medium.com/snowflake/low-code-spatial-analysis-based-on-h3-with-carto-and-snowflake-e28b883b0ffa?source=rss-e627007bf011------2</link>
            <guid isPermaLink="false">https://medium.com/p/e28b883b0ffa</guid>
            <category><![CDATA[h3]]></category>
            <category><![CDATA[snowflake]]></category>
            <category><![CDATA[carto]]></category>
            <category><![CDATA[geospatial]]></category>
            <dc:creator><![CDATA[Oleksii Bielov]]></dc:creator>
            <pubDate>Mon, 04 Mar 2024 12:08:58 GMT</pubDate>
            <atom:updated>2024-03-04T17:14:26.411Z</atom:updated>
            <content:encoded><![CDATA[<p>In our previous post, “<a href="https://www.snowflake.com/blog/getting-started-with-h3-hexagonal-grid/">Simplify Spatial Indexing with the Power of H3 — What the World Needs Now Is a Hexagonal Grid</a>”, we introduced basic concepts and use cases around H3. It’s a hierarchical, multi-resolution discrete global grid system that enables lightning-fast spatial analysis at scale. That post shared how you can start with H3, including creating an H3 index, seamlessly leveraging unique Spatial Index properties (such as parent, child, and neighbor cells), and enriching tables with H3 cells with data from tables that store other spatial objects. In today’s post, we’ll explore three use cases to illustrate how you can embed H3 into your analytical pipelines to help you scale your analysis with the help of our Location Intelligence partner CARTO.</p><p>One of the great advantages of leveraging H3 in Snowflake with CARTO is that you can build advanced analytical pipelines in <a href="https://carto.com/workflows?utm_source=snowflakeH3&amp;utm_medium=blog&amp;utm_campaign=snowflakeH3">CARTO Workflows</a> without the need to write code. We will also show how to create interactive dashboards with <a href="http://www.carto.com/builder">CARTO Builder</a> with built-in capabilities to visualize the H3 grid on a map. CARTO Workflows allows you to build your transformations by dragging and dropping data and analytical components onto a canvas — with all the processing still happening in Snowflake! Let’s check it out in action.</p><h3>Use Case #1 — Understanding the spatial distribution of taxi trips in NYC</h3><p>H3 offers several advantages for spatial analysis, including its capability to visualize complex spatial patterns straightforwardly and understandably. The following example shows how helpful H3 can be in this regard. We’ll use NYC taxi pick-up and drop-off data (the NYC_TAXI_RIDES in the <a href="https://app.snowflake.com/marketplace/listing/GZT0Z4CM1E9J2?utm_source=snowflakeH3&amp;utm_medium=blog&amp;utm_campaign=snowflakeH3">CARTO Academy Data</a> listing), transforming 2.5 million taxi location points into one H3 frequency grid. This will allow us to compare the spatial distribution of pick-up and drop-off locations. This type of analysis is important for resource planning in industries where the geographical locations of origins and destinations differ.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0w63lm7noz2pZ_ZgWMHroA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v5ro70jhS9cu1MCEOIuv1A.gif" /></figure><p>Note that you can open the SQL preview panel at the bottom of your workflow to see what’s running “under the hood” in your Snowflake project. You can even copy the entire SQL code into a Snowflake worksheet (see below) and run it from there — or download the workflow code as an SQL file to deploy in your data warehouse, saving you from writing any code!</p><p>The steps to this workflow are:</p><ol><li><strong>Filter taxi trips to the morning only. </strong>As we can expect very different pick-up and drop-off patterns depending on the time of day, we’ll use a simple filter (PART_OF_DAY = Morning) to investigate this time specifically.</li><li><strong>Convert pick-up and drop-off locations to a H3 count grid.</strong> The NYC_TAXI_RIDES table contains a string field for both the pick-up and drop-off locations, so for each of these, we need to:</li></ol><ul><li>Convert the pick-up and drop-off geographies into H3 indexes (<strong>H3 GeogPoint</strong>).</li><li>Use a <strong>GROUP BY</strong> component to calculate the total trips starting and finishing per H3 cell.</li></ul><p>3. <strong>Join inputs together.</strong> In this stage, we join two H3 count grids based on the H3 index field.</p><p>4. <strong>Normalize and calculate the difference between pick-ups and drop-offs.</strong> In this section, we use two <strong>Normalize</strong> components to convert the counts of both the pick-up and drop-offs into a score from 0 to 1. Then, we use a <strong>Create Column</strong> to find the difference between these two normalized scores to determine if an area has relatively more pickups or drop-offs. Finally — we <strong>Save as Table</strong> to commit the results, which you can see visualized in the map below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eXmQ_pe_SasPBDbZ4_CROA.png" /><figcaption>Use this <a href="https://clausa.app.carto.com/map/4746d663-0c7d-4865-96d2-7800032bc8e1">link</a> to open an interactive map</figcaption></figure><p>Do you notice any patterns here? We can see more drop-offs in the business district of Midtown — particularly along Park Avenue — and more pick-ups in the more residential areas, such as the Upper East and West Side, clearly reflecting the morning commute!</p><p>Follow the full tutorial for this use case <a href="https://academy.carto.com/creating-workflows/step-by-step-tutorials/analyzing-origin-and-destination-patterns">here</a>.</p><h3>Use Case #2 — Using K-Rings to calculate areas of influence</h3><p>Imagine you are an analyst working for a telco company. And your company wants to roll out cell tower improvements to a selection of our Colorado cell towers — but which? One approach would be to understand which cell towers serve the largest population. However, with over 120,000 cell towers in Colorado, calculating the local population would be slow.. right? Not with H3!</p><p>What typically makes this approach slow is that population data is conventionally derived by intersecting buffers with administrative geographies. These zones — such as census blocks and tracts — are typically made up of complex shapes, which make them heavy to store and slow to process.</p><p>However, by leveraging H3 we can replace geometries with far lighter string or integer IDs. For this, you can use the workflow below (and use datasets from the <a href="https://app.snowflake.com/marketplace/listing/GZT0Z4CM1E9J2?utm_source=snowflakeH3&amp;utm_medium=blog&amp;utm_campaign=snowflakeH3">CARTO Academy Data</a>).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iT-tPiPXhfWGir-5e6CATQ.png" /></figure><p>You can recreate this workflow with the following steps:</p><ol><li><strong>Convert each cell tower to a H3 index: </strong>use the <strong>H3 from GeoPoint</strong> component (which calls the H3_POINT_TO_CELL function in Snowflake) to do this, and ensure you set a resolution of 8 (the same as the Spatial Features table).</li><li><strong>Calculate K-rings:</strong> create a K-Ring of 1 around each cell tower’s H3 using <strong>H3 KRing</strong> (which calls the <a href="https://docs.snowflake.com/en/sql-reference/functions/h3_grid_distance">H3_GRID_DISTANCE</a> under the hood) — this will generate a new field called KRing_Index. This is a bit like calculating a spatial buffer — but far quicker!</li><li><strong>Join LTE coverage and Spatial Features using H3:</strong> set the join type to <strong>left</strong>, with the main table’s join (H3 KRing) column as <strong>KRing_Index</strong> and the secondary table (Spatial Features) as <strong>H3</strong>.</li><li><strong>Calculate the total population per tower: </strong>use the <strong>Group by</strong> component to calculate the total population within a K-Ring of 1 for each cell tower. Set the grouping column to <strong>H3</strong> and the aggregation column to <strong>POPULATION_JOINED</strong>, with the aggregation type as <strong>SUM</strong>.</li><li><strong>Join results to origin table:</strong> all that’s left to do is run another <strong>Join</strong> (left) between H3 from GeoPoint (join column: H3) and Group by (join column: H3) so you have all of the key variables for each cell tower in one table.</li></ol><p>You can explore the results of this analysis in the map below, made in CARTO Builder!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A2MNp8ckvAYJiccO19sQNQ.png" /><figcaption>Use <a href="https://clausa.app.carto.com/map/a6b0fdee-c932-4f48-bd8a-3fce00d89107">this</a> link to open an interactive map</figcaption></figure><p>To recreate this workflow, use <a href="https://academy.carto.com/creating-workflows/workflow-templates/telco#estimate-population-covered-by-a-telecommunications-cell-network">this</a> template and drop it directly into your CARTO Workspace.</p><h3>Use Case #3 — Understanding accident hotspots</h3><p>In this final use case, we’ll explore which parts of Paris’ cycle network could most benefit from improved safety measures.</p><p>We’ll use two tables from the CARTO Academy Data: PARIS_BIKE_ACCIDENTS (to understand the accident hotspots) and PARIS_CYCLING_NETWORK (to link these to physical cycle infrastructure).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2g23dbPwG-Ash21Uz3t8iw.png" /></figure><p>The process consists of four key steps:</p><ol><li><strong>Convert accidents to a H3 grid &amp; filter to the study area. </strong>You can use the <strong>Draw Custom Features</strong> component to create a custom study area covering the city of Paris, and then <strong>H3 Polyfill</strong> to convert this to an array of H3 cell IDs. As we’re interested in street-level insights, we’ve used the resolution of 10. Next, we convert the locations of bike accidents to H3 cell IDs using <strong>H3 from GeoPoint</strong>, and <strong>Join</strong> the two tables together. Using an inner join type effectively filters the accidents grid to our study area.</li><li><strong>Aggregate &amp; calculate hotspots.</strong> Use the <strong>GROUP BY</strong> component with the column H3 to get accident frequency per hexagon. We then use a <strong>Getis Ord*</strong> component to calculate hotspots (statistically significant clusters of high data values) from this grid. Finally, a <strong>Simple Filter</strong> is used to only retain statistically significant H3 cells with a P value of less than 0.1 — meaning we can be 90% confident that the outputs are spatial hotspots.</li><li><strong>Convert cycle network to H3. </strong>To transform these hotspots into actionable insights, we’ll now determine which parts of the cycle network infrastructure fall within accident hotspots and could benefit from some targeted improvements. But instead of using a spatial join to do this, we’ll again leverage H3. First, we run a 25-meter <strong>ST Buffer</strong> on the cycle network and employ <strong>H3 Polyfill</strong> to convert buffer areas to arrays of H3 cells — at this stage, we’ll make sure to enable “Keep table input columns.”</li><li><strong>Filter cycle links to those in accident hotspots.</strong> Now we can use another inner <strong>INNER</strong> <strong>JOIN</strong> to join our cycle network H3 polyfilled-grid to the results of our hotspot. We’re now left with only H3 cells in an accident hotspot AND which cover the cycling network. We’ll now use one final <strong>GROUP BY</strong> with the following parameters:</li></ol><ul><li>Group by column: CARTODB_ID</li><li>Aggregation: GI (AVG), HIGHWAY (ANY) &amp; GEOM_JOINED (ANY). You can also use ANY aggregation to retain any contextual information from the cycle links, such as highway name.</li></ul><p>Now, we have a table consisting of cycle links that can be found in an accident hotspot, as well as their respective average GI* score, which indicates the strength of the hotspot. You can explore the results of this in the map below — we’ve also included the original accident locations and H3 hotspots.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*si0SUrQV7lhUUITuZV3Rtw.png" /><figcaption>Use <a href="https://clausa.app.carto.com/map/e7fe5a39-4246-45a9-b3d4-defd06e65d98">this</a> link to open an interactive map</figcaption></figure><p>Through exploring the map we can see that many of the hotspots of cycle accidents occur in the center of Paris. In particular, the residential street of Rue Mahler in the Marais has the highest average GI* score of any part of the cycle network. With 21 accidents in the H3 cell covering the Rue Mahler &amp; Rue de Rivoli junction (higher than in any H3 cell in the city), this would appear to be an ideal candidate for some safety improvements.</p><p>Follow the full tutorial for this use case <a href="https://academy.carto.com/creating-workflows/step-by-step-tutorials/understanding-accident-hotspots">here</a>.</p><p>That concludes our whistle-stop tour of three H3 use cases! If you’d like to put any of this into action, remember you can open a 14-day free trial of CARTO from <a href="https://carto.com/blog/carto-available-on-snowflake-partner-connect?utm_source=snowflakeH3&amp;utm_medium=blog&amp;utm_campaign=snowflakeH3">Snowflake Partner Connect</a>, learn more about H3, and kick-start your transformative spatial analytics journey. CARTO also allows Snowflake users to enroll in their<a href="https://go.carto.com/h3-acceleration?utm_source=snowflakeH3&amp;utm_medium=blog&amp;utm_campaign=snowflakeH3"> H3 Acceleration program</a> — find out more here!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e28b883b0ffa" width="1" height="1" alt=""><hr><p><a href="https://medium.com/snowflake/low-code-spatial-analysis-based-on-h3-with-carto-and-snowflake-e28b883b0ffa">Low-code spatial analysis based on H3 with CARTO and Snowflake</a> was originally published in <a href="https://medium.com/snowflake">Snowflake Builders Blog: Data Engineers, App Developers, AI, &amp; Data Science</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introducing SedonaSnow]]></title>
            <link>https://medium.com/snowflake/introducing-sedonasnow-5c228b950e69?source=rss-e627007bf011------2</link>
            <guid isPermaLink="false">https://medium.com/p/5c228b950e69</guid>
            <category><![CDATA[geospatial]]></category>
            <category><![CDATA[snowflake]]></category>
            <category><![CDATA[sedona]]></category>
            <dc:creator><![CDATA[Oleksii Bielov]]></dc:creator>
            <pubDate>Tue, 28 Nov 2023 16:22:39 GMT</pubDate>
            <atom:updated>2024-06-12T20:13:22.408Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="https://wherobots.com/">Wherobots</a> released <a href="https://app.snowflake.com/marketplace/listing/GZTYZF0RTY3/wherobots-ai-sedonasnow">SedonaSnow</a>, a native app that brings Apache Sedona spatial SQL functionality to Snowflake. The app doubles the spatial functions offered by Snowflake and enables customers to do more with their geospatial data.</p><p><a href="https://github.com/apache/sedona">Apache Sedona</a> is a powerful open-source framework for large-scale geospatial data processing and analysis. Wherobots aims to enable Snowflake customers to use ST_ functions previously available via Sedona Spatial SQL APIs. After installation, you can run a Sedona query like this:</p><pre>SELECT Sedona.ST_MakeValid(ST_ASWKB(GEOMETRY))</pre><p>Let’s take a look at some of the functions available in SedonaSnow.</p><p><strong>ST_MakeValid. </strong>Today, Snowflake allows ingestion of invalid shapes with self-intersections or spikes. <a href="https://sedona.apache.org/1.5.1/api/snowflake/vector-data/Function/#st_makevalid">ST_MakeValid</a> can be used to fix those shapes, which takes an invalid GEOMETRY and creates a valid representation of it.</p><p><strong>ST_SubDivide. </strong>Customers who want to split large spatial objects into smaller ones can use the <a href="https://sedona.apache.org/1.5.1/api/snowflake/vector-data/Function/#st_subdivide">ST_SubDivide</a><strong> </strong>function, which takes a geometry and returns a list of shapes divided based on a given maximum number of vertices.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-b1VTyZfxOCqDlduSX52Wg.png" /></figure><p><strong>ST_3DDistance</strong>. In Snowflake, you can store three-dimensional spatial objects, for example, POINTZ(1 1 1). Using <a href="https://sedona.apache.org/1.5.1/api/snowflake/vector-data/Function/#st_3ddistance">ST_3DDistance</a><strong>, </strong>you can calculate the minimum cartesian distance between two three-dimensional objects.</p><p><strong>ST_PrecisionReduce</strong>. Sometimes customers need to reduce the precision in the coordinates of the spatial object to the given number of decimal places. That is possible now with the help of the <a href="https://sedona.apache.org/1.5.1/api/snowflake/vector-data/Function/#st_reduceprecision">ST_ReducePrecision</a> function.</p><p>These are just a few examples of new functions now available for Snowflake customers. Check Wherobots <a href="https://sedona.apache.org/1.5.1/api/snowflake/vector-data/Function/">documentation</a> to explore the entire set.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5c228b950e69" width="1" height="1" alt=""><hr><p><a href="https://medium.com/snowflake/introducing-sedonasnow-5c228b950e69">Introducing SedonaSnow</a> was originally published in <a href="https://medium.com/snowflake">Snowflake Builders Blog: Data Engineers, App Developers, AI, &amp; Data Science</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to use Python UDFs for Geospatial use cases in Snowflake]]></title>
            <link>https://medium.com/snowflake/how-to-use-python-udfs-for-geospatial-use-cases-in-snowflake-bd46969d620b?source=rss-e627007bf011------2</link>
            <guid isPermaLink="false">https://medium.com/p/bd46969d620b</guid>
            <category><![CDATA[udf]]></category>
            <category><![CDATA[geospatial]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[snowflake]]></category>
            <dc:creator><![CDATA[Oleksii Bielov]]></dc:creator>
            <pubDate>Mon, 20 Mar 2023 21:01:32 GMT</pubDate>
            <atom:updated>2023-03-31T08:05:13.711Z</atom:updated>
            <content:encoded><![CDATA[<p>“About 80% of data is geographic”, or so goes an <a href="https://www.gislounge.com/80-percent-data-is-geographic/">urban legend</a> popular in the GIS community. It’s easy to believe that number just by looking at how many Snowflake customers use a spatial data type (Geography or Geometry) or store their geospatial coordinates in latitude and longitude fields. We recently looked — it’s more than two-thirds of our customers!</p><p>Snowflake has been offering the <a href="https://www.snowflake.com/blog/getting-started-geography-data/">Geography</a> data type since 2020 and recently (August 2022) introduced <a href="https://www.snowflake.com/blog/blog-getting-started-geometry-data/">Geometry</a> in Public Preview. For each of those types, Snowflake offers 50+ native functions that follow the OGC specifications and cover a large variety of use cases. But what if users need a function not supported out of the box? An easy solution to that are Python user-defined functions that can be called as though they were regular SQL functions. Did you know you can use our <a href="https://docs.snowflake.com/en/developer-guide/snowpark/index">Snowpark</a> development and execution environment to create and run Python UDFs easily?</p><p><strong>What are Snowflake Python UDFs and UDTFs?</strong></p><p>A <a href="https://docs.snowflake.com/en/developer-guide/udf/python/udf-python-introduction.html">Python UDF</a> is a user-defined function written in Python instead of SQL that can be called from a Snowflake query or script in the same way a built-in function can. Python UDFs can be scalar functions, meaning for each row passed to the UDF, the UDF returns a single value. They can be <a href="https://docs.snowflake.com/en/developer-guide/udf/python/udf-python-batch">vectorized UDFs</a> that receive batches of input rows as Pandas DataFrames and return batches of results as Pandas arrays or Series. Or they can be user-defined table functions (UDTFs) that return tabular results.</p><p>Inside the Python UDF you can use many of the Geospatial libraries you might be already familiar with. Here are some of the libraries that Snowflake supports today:</p><p><a href="https://shapely.readthedocs.io/en/stable/manual.html"><strong>Shapely</strong></a> — for manipulating and analyzing geometric objects in the Cartesian plane.</p><p><a href="https://gdal.org/"><strong>GDAL</strong></a> — arguably the most popular library for reading and writing raster and vector geospatial data formats.</p><p><a href="https://fiona.readthedocs.io/en/latest/manual.html"><strong>Fiona</strong></a> — a library that reads and writes spatial data files.</p><p><a href="https://pyproj4.github.io/pyproj/stable/"><strong>PyPROJ</strong></a> — Python interface to PROJ, a library for performing conversions between cartographic projections.</p><p><a href="https://geopandas.org/en/stable/"><strong>Geopandas</strong></a> — Geographic pandas extensions.</p><p><a href="https://uber.github.io/h3-py/intro.html"><strong>H3</strong></a> — wrapper for the H3 core library.</p><p>You can check the full list of libraries supported out of the box in the <a href="https://repo.anaconda.com/pkgs/snowflake/">Snowflake Anaconda Channel</a>. If you need a library not listed there, you can bring it in via <a href="https://docs.snowflake.com/en/developer-guide/udf/python/udf-python-packages">stage imports</a>.</p><p><strong>What can you do with Python UDFs?</strong></p><p>Let’s look at some scenarios where users could benefit from Python UDFs. While some of these functions might be released as part of our native Geospatial library in the future, you can get things done today by following one of the following approaches.</p><p><strong>Create extended geo functions. </strong>Users who need an ST_ function that is not on the <a href="https://docs.snowflake.com/en/sql-reference/functions-geospatial.html">currently supported list</a> can create it by leveraging UDFs. Here is the code sample for a function that does aggregated union and uses the Shapely library:</p><pre>CREATE OR REPLACE FUNCTION PY_UNION_AGG(g1 array)<br>returns geography<br>language python<br>runtime_version = 3.8<br>packages = (&#39;shapely&#39;)<br>handler = &#39;udf&#39;<br>AS $$<br>from shapely.ops import unary_union<br>from shapely.geometry import shape, mapping<br>def udf(g1):<br>    shape_union = unary_union([shape(i) for i in g1])<br>    return mapping(shape_union)<br>$$;</pre><p>PY_UNION_AGG takes as a parameter an array of JSON values. You can create it like this:</p><pre>SELECT PY_UNION_AGG(ARRAY_AGG(st_asgeojson(&lt;COLUMN_NAME&gt;))) FROM &lt;TABLE_NAME&gt;;</pre><p>Here is an example of using the PY_UNION_AGG UDF:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CivgWLQtS3G3_3ApD2e9Og.png" /></figure><p><strong>Repair invalid spatial objects.</strong> Today, Snowflake allows storing shapes with self-intersections or spikes (<a href="https://docs.snowflake.com/en/sql-reference/data-types-geospatial#label-geospatial-invalid-shape-handling-intro">this feature</a> is in preview). After ingesting an invalid spatial object, users might want to fix it. The Shapely library can help with it, and here is an example of a vectorized UDF with batch size = 1000 (rows):</p><pre>CREATE OR REPLACE FUNCTION PY_MAKEVALID(geo GEOGRAPHY)<br>returns geography<br>language python<br>runtime_version = 3.8<br>packages = (&#39;shapely&#39;, &#39;pandas&#39;)<br>handler = &#39;udf&#39;<br>AS $$<br>import shapely<br>import pandas<br>from _snowflake import vectorized<br>from shapely.geometry import shape, mapping<br>from shapely.validation import make_valid<br>@vectorized(input=pandas.DataFrame, max_batch_size=1000)<br>def udf(df):<br>    valid_df = df[0].apply(lambda x: mapping(make_valid(shape(x))))<br>    return valid_df<br>$$;</pre><p>Here is an example of how to call this function:</p><pre>select py_makevalid(to_geography(&#39;POLYGON((-98.854908 39.518387,<br>-83.3978497 38.744473,-104.649423 31.751698,<br>-84.254971 31.570112,-98.854908 39.518387))&#39;, True)) as repaired_shape;</pre><p>Visually, the shapes look the same before and after repair. What changes is how they are defined, namely polygons, after repairing, often become multipolygons.</p><p><strong>Reading shapefiles. </strong>Although the Shapefile format was introduced in the early 1990s, today, it’s still widely used to store spatial data. If users need to import spatial data from Shapefile-formatted files to Snowflake, they can use Python UDTFs and the Fiona library. Here are a few steps users need to take to load data from this type of data source.</p><ol><li>Upload the zip archive with Shapefiles files to the pre-created stage</li></ol><pre>PUT file:///Users/&lt;LOCAL_PATH&gt;/archive.zip @geostage AUTO_COMPRESS = FALSE</pre><p>2. Create a function to read Shapefiles from the stage and convert it to a table. Note that the UDF contains the path to the zip file you uploaded in the previous step.</p><pre>CREATE OR REPLACE FUNCTION PY_LOAD_SHAPEFILE(PATH_TO_FILE string)<br>returns table (wkb binary, properties object)<br>language python<br>runtime_version = 3.8<br>imports=(&#39;@geostage/archive.zip&#39;)<br>packages = (&#39;fiona&#39;, &#39;shapely&#39;)<br>handler = &#39;ShapeFileReader&#39;<br>AS $$<br>import fiona<br>from shapely.geometry import shape<br>import sys<br>IMPORT_DIRECTORY_NAME = &quot;snowflake_import_directory&quot;<br>import_dir = sys._xoptions[IMPORT_DIRECTORY_NAME]<br>class ShapeFileReader:        <br>    def process(self, PATH_TO_FILE: str):<br>      shapefile = fiona.open(f&quot;zip://{import_dir}/archive.zip/{PATH_TO_FILE}&quot;)<br>      for record in shapefile:<br>        yield ((shape(record[&#39;geometry&#39;]).wkb, dict(record[&#39;properties&#39;])))<br>$$;</pre><p>Below is a SQL command you need to run to import spatial data from the staged Shapefile:</p><pre>SELECT * FROM TABLE(PY_LOAD_SHAPEFILE(&#39;&lt;PATH_TO_FILE&gt;&#39;));</pre><p>Similarly, you can read other data formats such as MID/MIF/TAB/etc. Here is an example of UDF for reading KML:</p><pre>CREATE OR REPLACE FUNCTION PY_LOAD_KML(PATH_TO_FILE string)<br>returns table (wkb binary, properties object)<br>language python<br>runtime_version = 3.8<br>imports=(&#39;@geostage/archive.zip&#39;)<br>packages = (&#39;fiona&#39;, &#39;shapely&#39;)<br>handler = &#39;KMLReader&#39;<br>AS $$<br>import fiona<br>from shapely.geometry import shape<br>import sys<br>IMPORT_DIRECTORY_NAME = &quot;snowflake_import_directory&quot;<br>import_dir = sys._xoptions[IMPORT_DIRECTORY_NAME]<br><br>class KMLReader:        <br>    def process(self, PATH_TO_FILE: str):<br>      fiona.drvsupport.supported_drivers[&#39;libkml&#39;] = &#39;rw&#39;<br>      fiona.drvsupport.supported_drivers[&#39;LIBKML&#39;] = &#39;rw&#39;<br>      shapefile = fiona.open(f&quot;zip://{import_dir}/archive.zip/{PATH_TO_FILE}&quot;)<br>      for record in shapefile:<br>        yield ((shape(record[&#39;geometry&#39;]).wkb, dict(record[&#39;properties&#39;])))<br>$$;</pre><p>Note that since we used UDTF, both functions, PY_LOAD_SHAPEFILE and PY_LOAD_KML, return a table and not a singular value.</p><p><strong>Transformations between spatial reference systems.</strong> In August 2022, Snowflake introduced support of the GEOMETRY data type that allows users to use local coordinate systems. For transformations between coordinate systems, they can write a UDF that uses a Python version of the PyPROJ library:</p><pre>CREATE OR REPLACE FUNCTION PY_TRANSFORM(g1 GEOMETRY, srid_from NUMBER, srid_to NUMBER)<br>returns geometry<br>language python<br>runtime_version = 3.8<br>packages = (&#39;pyproj&#39;,&#39;shapely&#39;)<br>handler = &#39;udf&#39;<br>AS $$<br>import pyproj<br>import shapely<br>from shapely.ops import transform<br>from shapely.geometry import shape<br>from shapely import wkb, wkt<br>def udf(g1, srid_from, srid_to):<br>    source_srid = pyproj.CRS(srid_from)<br>    target_srid = pyproj.CRS(srid_to)<br>    project = pyproj.Transformer.from_crs(source_srid, target_srid, always_xy=True).transform<br>    shape_wgs = shape(g1)<br>    shape_tr = transform(project, shape_wgs)<br>    return shapely.geometry.mapping(shape_tr)        <br>$$;</pre><p>When calling this function, you should set a new SRID via the Snowflake-native ST_SETSRID function:</p><pre>SELECT ST_SETSRID(PY_TRANSFORM(to_geometry(&#39;POLYGON((-97.266975 37.9387717,<br>-100.042662 34.337848,-88.284724 34.205826,<br>-97.266975 37.938771))&#39;), 4326, 3443), 3443) as transformed_shape;</pre><p>In this post, we showed just a few examples of how Python UDFs can be used for geospatial use cases in Snowflake. Please review the Snowflake documentation on <a href="https://docs.snowflake.com/en/developer-guide/udf/python/udf-python-introduction.html">Python UDFs</a> and <a href="https://docs.snowflake.com/en/sql-reference/data-types-geospatial.html">Geospatial Data Types</a> for more information.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bd46969d620b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/snowflake/how-to-use-python-udfs-for-geospatial-use-cases-in-snowflake-bd46969d620b">How to use Python UDFs for Geospatial use cases in Snowflake</a> was originally published in <a href="https://medium.com/snowflake">Snowflake Builders Blog: Data Engineers, App Developers, AI, &amp; Data Science</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Scrum vs Kanban — which is better for a DS project?]]></title>
            <link>https://medium.com/@oleksii.bielov/scrum-vs-kanban-which-is-better-for-a-ds-project-f58497675926?source=rss-e627007bf011------2</link>
            <guid isPermaLink="false">https://medium.com/p/f58497675926</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[kanban]]></category>
            <category><![CDATA[scrum]]></category>
            <dc:creator><![CDATA[Oleksii Bielov]]></dc:creator>
            <pubDate>Mon, 18 May 2020 22:17:34 GMT</pubDate>
            <atom:updated>2020-05-25T09:01:01.258Z</atom:updated>
            <content:encoded><![CDATA[<h3>Scrum vs. Kanban — what works better for a Data Science project?</h3><p>What suits Data Science (DS) teams the best — Scrum or Kanban? In this article, we will examine the pros and cons of using each.</p><p>Translation of <a href="https://leands.ru/scrum-vs-kanban/">this</a> article.</p><h3>What is the essence of Scrum?</h3><p>Scrum is extremely popular in software development. The main feature of Scrum is Sprints (iterations). Here are the basic principles:</p><ul><li>Each Sprint has its goal. Sprint is considered as successful if the team has achieved the Sprint Goal.</li><li>The Sprint Backlog consists of User Stories. Each User Story brings value to the user.</li><li>At the beginning of the Sprint, Stories are pulled into the Sprint Backlog from the Product Backlog and should be completed before the Sprint ends. To be more precise, they must comply with the Definition of Done. In mature teams, this means that the user story is developed, tested, found bugs are fixed and closed, the product is deployed to Staging or Prod environment.</li></ul><p>What such an approach brings to the team?</p><ul><li>The Sprint goal ensures a focus for the team. Roughly speaking, there is a Product Increment at the end of each Sprint.</li><li>Short Time to Market. It takes just one Sprint from the start of development to delivery, for most of the teams it’s 2 weeks.</li><li>Significantly simplified planning. If the team focuses on completing all the User Stories, then we are not carrying over to the next sprint all the WIP and bugs from past Sprints. Then everything is transparent and tidy!</li></ul><h3>What makes Data Science projects different?</h3><p>A user story in DS is a hypothesis. Just like a User Story, it has the following properties:</p><ul><li>Understandable and measurable value for the user or business</li><li>Described using the language of business</li></ul><p>Most DS teams face the following problem:</p><blockquote>The hypothesis is almost impossible to close (validate) within one Sprint.</blockquote><p>The hypothesis has a longer life cycle. For example, in <a href="https://en.wikipedia.org/wiki/Cross-industry_standard_process_for_data_mining">CRISP-DM</a> it looks like this:</p><ul><li>Business understanding</li><li>Data understanding</li><li>Data preparation</li><li>Modelling</li><li>Evaluation</li><li>Deployment</li></ul><p>How long does it take to validate a hypothesis? It depends, but usually from several weeks to several months.</p><p>That’s a lot, at least in comparison with the pace of implementing a regular User Story. In a Software Engineering (SWE) team of 5–7 members a typical number of completed User Stories per Sprint is from 3 to 8.</p><p>But there is another important difference in Data Science projects. Data Science — discovery process. Many hypotheses will likely fail, and a relatively small percentage of hypotheses reach the Production and bring value.</p><p>SWE — delivery process. One can hardly imagine that a correctly formulated User Story could not reach the Production or at least to be shown to the customer.</p><h3>What is the difference of Kanban</h3><p>In Kanban, the movement of hypotheses through its life cycle is clearly visualized on the board.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_mxt2RlGKjnnVJP_hYNjcQ.png" /></figure><p>The split into separate tasks is done as a checklist for each hypothesis. Teams try to keep it up to date by adding new tasks or removing unnecessary ones.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*29_UiTWN-WPV2cksy1IQxg.png" /></figure><p>Hypotheses can be rejected or filtered out right away without waiting for the end of the Sprint.</p><h3>How Scrum works in Data Science</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yqOp3n9KFUwxVMikyI_xUQ.jpeg" /></figure><ul><li>Usually, no reasonable goal can be set for a Sprint. Even if we manage to formulate a goal, it’s almost impossible to achieve it by the end of the Sprint.</li><li>At the end of the Sprint there is a bunch of unfinished work, which is simply carried over to the next Sprint.</li><li>Due to the discovery nature of DS projects, it could be the case that inside of the Sprint something happens that completely destroys the sense of completing the Sprint.</li></ul><p>And as a result, the Sprint ends up turning into a quantum of time which indicates the frequency of planning meetings.</p><p>What does a Sprint look like? Inside the Sprint the team could be working on the preparation of data from one hypothesis, modelling of another, A/B testing of the third one. Moreover, it might be not clear from the name of the task what hypothesis it refers to, and often even the hypotheses itself not formulated clearly.</p><p>The main issue of the Scrum style planning is the transparency of hypothesis status. This complicates the planning since we have to keep track of the unfinished Stories, carry them over from Sprint to Sprint, consider old bugs.</p><p>This load lays either on the Team Lead or Product Owner. Often the information about the real status of the DS project stored in their mind Palace and nowhere else.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*7ytynUk670Gmakyk8OuwYA.jpeg" /></figure><h3>Why do many teams choose Scrum?</h3><p>It seems to me that a certain psychological factor plays a role here. Sprint planning looks like this: every Data Scientist gets enough job for two weeks. This provides a feeling of control over what is happening and satisfaction that everyone is busy and no one is loafing.</p><p>This absolutely makes sense if the team for some reason is full of loafers who strive to avoid work. In such a case, there can be only one advice — don’t hire such people.</p><h3>When Scrum would be a more effective choice</h3><p>Scrum is a great framework and its application in DS is reasonable if:</p><ul><li>During the Sprint, your team manage to validate 3–8 hypotheses from start to finish</li><li>Almost all of these hypotheses reach the Production</li></ul><p>Actually that is possible. For example, your model has been for a long time in production and you just extend it with new cases. At the same time, you have very few blocking factors. For example, all company data is available in DWH and in excellent condition.</p><p>In fact, we are talking about a team supporting an already working model.</p><p>In all other cases, Kanban seems to be a more reasonable choice.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f58497675926" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>