blob: f62b4fe09960fc289dbac7d0097088fc0c19c444 [file] [log] [blame]
{{/*
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" }}
<table class="configuration table table-bordered">
<thead>
<tr>
<th class="text-left" style="width: 30%">Function</th>
<th class="text-left" style="width: 70%">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><h5>year(temporal-column [, precision])</h5></td>
<td>Extract year from the input. Output is an INT value represent the year.</td>
</tr>
<tr>
<td><h5>month(temporal-column [, precision])</h5></td>
<td>Extract month of year from the input. Output is an INT value represent the month of year.</td>
</tr>
<tr>
<td><h5>day(temporal-column [, precision])</h5></td>
<td>Extract day of month from the input. Output is an INT value represent the day of month.</td>
</tr>
<tr>
<td><h5>hour(temporal-column [, precision])</h5></td>
<td>Extract hour from the input. Output is an INT value represent the hour.</td>
</tr>
<tr>
<td><h5>minute(temporal-column [, precision])</h5></td>
<td>Extract minute from the input. Output is an INT value represent the minute.</td>
</tr>
<tr>
<td><h5>second(temporal-column [, precision])</h5></td>
<td>Extract second from the input. Output is an INT value represent the second.</td>
</tr>
<tr>
<td><h5>date_format(temporal-column, format-string [, precision])</h5></td>
<td>Convert the input to desired formatted string. Output type is STRING.</td>
</tr>
<tr>
<td><h5>now()</h5></td>
<td>Get the timestamp when ingesting the record. Output type is TIMESTAMP_LTZ(3).</td>
</tr>
</tbody>
</table>