title: HQL (HIVE) date_format adding an extra year after Dec 25th 2021
body: <p>I am not sure if this is just on my local instance or if it is a fundamental problem but for me in hive date_format jumps a year after December 25th 2021.</p>
  <pre><code>Select date_format('2021-12-25','YYYY-MM-dd') as Correct2021
          ,date_format('2021-12-26','YYYY-MM-dd') as Wrong2022
          ,date_format(date_add(current_date,51),'YYYY-MM-dd') as Correct2021b
          ,date_format(date_add(current_date,52),'YYYY-MM-dd') as Wrong2022b
  </code></pre>
  <p>The code above for me returns</p>
  <div class="s-table-container">
  <table class="s-table">
  <thead>
  <tr>
  <th>correct2021</th>
  <th>wrong2022</th>
  <th>correct2021b</th>
  <th>wrong2022b</th>
  </tr>
  </thead>
  <tbody>
  <tr>
  <td>2021-12-25</td>
  <td>2022-12-26</td>
  <td>2021-12-25</td>
  <td>2022-12-26</td>
  </tr>
  </tbody>
  </table>
  </div>
  <p>If running on a different date then 11/4/2021 you would need to adjust the date adds.</p>