Last active
April 24, 2024 03:51
-
-
Save lightle/30f68518b74b64a213b8da2ec3c398c9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{%- macro is_last_day_of_month(datecol) %} | |
DAY(DATE_ADD(day, 1, cast({{ datecol }} AS DATE))) = 1 | |
{% endmacro -%} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment