{{/* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */}} {{ $ref := ref . "maintenance/configurations.md" }}
Function Description
year(temporal-column [, precision])
Extract year from the input. Output is an INT value represent the year.
month(temporal-column [, precision])
Extract month of year from the input. Output is an INT value represent the month of year.
day(temporal-column [, precision])
Extract day of month from the input. Output is an INT value represent the day of month.
hour(temporal-column [, precision])
Extract hour from the input. Output is an INT value represent the hour.
minute(temporal-column [, precision])
Extract minute from the input. Output is an INT value represent the minute.
second(temporal-column [, precision])
Extract second from the input. Output is an INT value represent the second.
date_format(temporal-column, format-string [, precision])
Convert the input to desired formatted string. Output type is STRING.