Sys_Calendar.CALENDAR_TD1310 - Teradata VantageCloud Lake

Lake - Database Reference

Deployment
VantageCloud
Edition
Lake
Product
Teradata VantageCloud Lake
Release Number
Published
February 2025
ft:locale
en-US
ft:lastEdition
2025-11-21
dita:mapPath
ohi1683672393549.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
ohi1683672393549
Sys_Calendar.CALENDAR_TD1310 can only be used for the system-defined calendar. If you try to use this calendar when the session calendar is ISO or COMPATIBLE, the returned values are from the system-defined calendar and are therefore invalid.

The current versions (Sys_Calendar.CALENDAR and Sys_Calendar.CALENDAR_TD_ISO_COMPATIBLE) may use embedded services system functions to compute column values. The Sys_Calendar.CALENDAR_TD1310 version computes all column values using arithmetic, which typically takes less time than computing values using UDFs.

To use the legacy TD1310 version of the view, replace the definition of Sys_Calendar.CALENDAR with the definition of Sys_Calendar.CALENDAR_TD1310. Follow these steps:

  1. Use this statement to view the definition of the Sys_Calendar.Calendar_TD1310 version:
    SHOW VIEW Sys_Calendar.Calendar_TD1310;
  2. Use REPLACE to replace the definition of Sys_Calendar.CALENDAR with the definition of the Sys_Calendar.CALENDAR_TD1310 version.
The redefined current version no longer uses embedded services system functions to compute column values for the following columns:
  • day_of_month
  • weekday_of_month
  • month_of_quarter
  • month_of_year
  • quarter_of_year
  • year_of_calendar