<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: what is the difference between weekday and dayofweek function in spark SQL? in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/what-is-the-difference-between-weekday-and-dayofweek-function-in/m-p/33424#M24421</link>
    <description>&lt;P&gt;ah yes, my bad!&lt;/P&gt;</description>
    <pubDate>Mon, 13 Dec 2021 13:17:40 GMT</pubDate>
    <dc:creator>-werners-</dc:creator>
    <dc:date>2021-12-13T13:17:40Z</dc:date>
    <item>
      <title>what is the difference between weekday and dayofweek function in spark SQL?</title>
      <link>https://community.databricks.com/t5/data-engineering/what-is-the-difference-between-weekday-and-dayofweek-function-in/m-p/33418#M24415</link>
      <description>&lt;P&gt;dayofweek: &lt;A href="https://docs.databricks.com/sql/language-manual/functions/dayofweek.html" target="test_blank"&gt;https://docs.databricks.com/sql/language-manual/functions/dayofweek.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;weekday : &lt;A href="https://docs.databricks.com/sql/language-manual/functions/weekday.html" target="test_blank"&gt;https://docs.databricks.com/sql/language-manual/functions/weekday.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;According to the documentation , they both are synonym functions. &lt;/P&gt;&lt;P&gt;But when I use it I noticed that weekday starts the day count from Tuesday = 1  &lt;span class="lia-inline-image-display-wrapper" image-alt="weekday vs dayofweek"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/2241i9682A0E965FB0E45/image-size/large?v=v2&amp;amp;px=999" role="button" title="weekday vs dayofweek" alt="weekday vs dayofweek" /&gt;&lt;/span&gt; &lt;/P&gt;&lt;P&gt;Would this be considered a bug or do both functions mean different things?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Dec 2021 23:20:18 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/what-is-the-difference-between-weekday-and-dayofweek-function-in/m-p/33418#M24415</guid>
      <dc:creator>mrvi2310</dc:creator>
      <dc:date>2021-12-10T23:20:18Z</dc:date>
    </item>
    <item>
      <title>Re: what is the difference between weekday and dayofweek function in spark SQL?</title>
      <link>https://community.databricks.com/t5/data-engineering/what-is-the-difference-between-weekday-and-dayofweek-function-in/m-p/33419#M24416</link>
      <description>&lt;P&gt;Hello, @mrvi2310​! Welcome and thanks for your question. My name is Piper and I'm one of the community moderators. Let's give it a bit to see how the other members respond. We'll circle back around if we need to.&lt;/P&gt;</description>
      <pubDate>Sat, 11 Dec 2021 00:40:50 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/what-is-the-difference-between-weekday-and-dayofweek-function-in/m-p/33419#M24416</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-12-11T00:40:50Z</dc:date>
    </item>
    <item>
      <title>Re: what is the difference between weekday and dayofweek function in spark SQL?</title>
      <link>https://community.databricks.com/t5/data-engineering/what-is-the-difference-between-weekday-and-dayofweek-function-in/m-p/33420#M24417</link>
      <description>&lt;P&gt;That's correct for weekday moday=0 for dayofweek Sunday=1.​&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;You can also look for documentation here &lt;A href="https://spark.apache.org/docs/latest/api/python/reference/api/pyspark.sql.functions.dayofweek.html" target="test_blank"&gt;https://spark.apache.org/docs/latest/api/python/reference/api/pyspark.sql.functions.dayofweek.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;​https://spark.apache.org/docs/latest/api/sql/index.html&lt;/P&gt;</description>
      <pubDate>Sat, 11 Dec 2021 10:37:47 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/what-is-the-difference-between-weekday-and-dayofweek-function-in/m-p/33420#M24417</guid>
      <dc:creator>Hubert-Dudek</dc:creator>
      <dc:date>2021-12-11T10:37:47Z</dc:date>
    </item>
    <item>
      <title>Re: what is the difference between weekday and dayofweek function in spark SQL?</title>
      <link>https://community.databricks.com/t5/data-engineering/what-is-the-difference-between-weekday-and-dayofweek-function-in/m-p/33422#M24419</link>
      <description>&lt;P&gt;Maybe update the databricks docs, as there is indeed stated that they are synonyms.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Dec 2021 11:47:57 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/what-is-the-difference-between-weekday-and-dayofweek-function-in/m-p/33422#M24419</guid>
      <dc:creator>-werners-</dc:creator>
      <dc:date>2021-12-13T11:47:57Z</dc:date>
    </item>
    <item>
      <title>Re: what is the difference between weekday and dayofweek function in spark SQL?</title>
      <link>https://community.databricks.com/t5/data-engineering/what-is-the-difference-between-weekday-and-dayofweek-function-in/m-p/33424#M24421</link>
      <description>&lt;P&gt;ah yes, my bad!&lt;/P&gt;</description>
      <pubDate>Mon, 13 Dec 2021 13:17:40 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/what-is-the-difference-between-weekday-and-dayofweek-function-in/m-p/33424#M24421</guid>
      <dc:creator>-werners-</dc:creator>
      <dc:date>2021-12-13T13:17:40Z</dc:date>
    </item>
  </channel>
</rss>

