Sebastian Flak’s Post

View profile for Sebastian Flak, graphic

📝I post about data |❄️Snowflake Squad Member | 💾 Data Engineer

❄ Did you know Snowflake has duplicated functions?   There are for example: - RLIKE & REGEXP - NVL & IFNULL - CAST & TO_<EVERY_TYPE> … and some other different use cases like "::" to also cast data types   Even tho their output is exactly the same, there is a reason behind why they are still here.   And the answer is….   Compatibility with different SQL dialects!   Imagine migration from Oracle (or some other DB) to Snowflake without knowing all of these new & fancy functions.   You would need to go through your SQL very carefully (I still recommend to do that) and change most of the Oracle's not-ANSI functions for a Snowflake ones.   Which sometimes can be challenging.   Snowflake simplify this process with the support of "legacy" functions so there is no need to do that.   It can also help with code readability, so you don't need to instantly switch to a brand-new different functions and patterns.   Do you know some other examples?     #Snowflake #dataengineering

  • No alternative text description for this image

To view or add a comment, sign in

Explore topics