As of Hive 1.1.0, last_day(string date)
function is available.
last_day(string date)
Returns the last day of the month which the date belongs to. date is a string in the format ‘yyyy-MM-dd HH:mm:ss’ or ‘yyyy-MM-dd’. The time part of date is ignored.
More Related Contents:
- HIVE select count(*) non null returns higher value than select count(*)
- Explode (transpose?) multiple columns in Spark SQL table
- Hive query performance for high cardinality field
- Hive – Unpivot functionality in hive
- Insert local .csv data in remote SQL Server via already working connection string
- I want to search job and salary from employee table but I am getting error like invalid relational operator [closed]
- Which is faster/best? SELECT * or SELECT column1, colum2, column3, etc
- Is SQL syntax case sensitive?
- How to use ANY instead of IN in a WHERE clause?
- Simple Query to Grab Max Value for each ID
- Constraint defined DEFERRABLE INITIALLY IMMEDIATE is still DEFERRED?
- How to find the employee with the second highest salary?
- SQL Server 2008: how do I grant privileges to a username?
- Including null values in an Apache Spark Join
- How to Implement Referential Integrity in Subtypes
- Equivalent function for DATEADD() in Oracle
- How do I do multiple CASE WHEN conditions using SQL Server 2008?
- How to get other columns when using Spark DataFrame groupby?
- Is there AUTO INCREMENT in SQLite?
- Name database design notation you prefer and why?
- Incorrect syntax near ”
- INNER JOIN in UPDATE sql for DB2
- How to delete duplicate rows with SQL?
- Best way to test SQL queries [closed]
- sql query if parameter is null select all
- What does a (+) sign mean in an Oracle SQL WHERE clause? [duplicate]
- Temporal database design, with a twist (live vs draft rows)
- SQL query with distinct and sum
- How do I perform update query with subquery in Access?
- Why do SQL Server Scalar-valued functions get slower?