- Apache Tajo Tutorial
- Apache Tajo - Home
- Apache Tajo - Introduction
- Apache Tajo - Architecture
- Apache Tajo - Installation
- Apache Tajo - Configuration Settings
- Apache Tajo - Shell Commands
- Apache Tajo - Data Types
- Apache Tajo - Operators
- Apache Tajo - SQL Functions
- Apache Tajo - Math Functions
- Apache Tajo - String Functions
- Apache Tajo - DateTime Functions
- Apache Tajo - JSON Functions
- Apache Tajo - Database Creation
- Apache Tajo - Table Management
- Apache Tajo - SQL Statements
- Aggregate & Window Functions
- Apache Tajo - SQL Queries
- Apache Tajo - Storage Plugins
- Integration with HBase
- Apache Tajo - Integration with Hive
- OpenStack Swift Integration
- Apache Tajo - JDBC Interface
- Apache Tajo - Custom Functions
- Apache Tajo Useful Resources
- Apache Tajo - Quick Guide
- Apache Tajo - Useful Resources
- Apache Tajo - Discussion
add_days(date date or timestamp, int day)
Let us now check the add_days(date,day) function with the following query.
Query
default> select add_days(date '2016-08-11',2) as add;
Result
The above query will generate the following result.
add ------------------------------- 2016-08-13 00:00:00
The above query returns the given date by adding two days.
Let us now see how the query progresses further.
Query
default> select add_days(timestamp '2016-08-11 17:04:00',2) as add;
Result
The above query will generate the following result.
add ------------------------------- 2016-08-13 17:04:00
The query returns the given timestamp by adding two days to it.
apache_tajo_datetime_functions.htm
Advertisements