Hive
Hive Function: Built-in & UDF (User Defined Functions)
Functions are built for a specific purpose to perform operations like Mathematical, arithmetic,...
Views are similar to tables, which are generated based on the requirements.
Creation of View:
Syntax:
Create VIEW <VIEWNAME> AS SELECT
Example:
Hive>Create VIEW Sample_ViewAS SELECT * FROM employees WHERE salary>25000
In this example, we are creating view Sample_View where it will display all the row values with salary field greater than 25000.
Indexes are pointers to particular column name of a table.
Syntax:
Create INDEX <INDEX_NAME> ON TABLE < TABLE_NAME(column names)>
Example:
Create INDEX sample_Index ON TABLE guruhive_internaltable(id)
Here we are creating index on table guruhive_internaltable for column name id.
Functions are built for a specific purpose to perform operations like Mathematical, arithmetic,...
In this tutorial, you will learn- Join queries Different type of joins Sub queries Embedding custom...
Training Summary Apache Hive helps with querying and managing large datasets real fast. It is an...
Hive as an ETL and data warehousing tool on top of Hadoop ecosystem provides functionalities like...
In this tutorial, you will learn- What is Hive? Hive Architecture Different modes of Hive What is...
Hive provides SQL type querying language for the ETL purpose on top of Hadoop file system. Hive Query...