'Hive Default Partition' in details
We will use below sample data for the task. This is the sample data of employee details. Some employees are the member of company’s sports team like Cricket, Football, Basketball, Tennis, Badminton. Some employees are not a member of any sports team that records are highlighted in the above picture. You can download the sample data from here. Solution There are 2 types of partitions in hive – Static and Dynamic. We do assign a value to a partition column in static partition table whereas, in the dynamic partition, the value gets assigned to the partitioned column dynamically based on the data available in the table for the defined partition column Step 1: Set Up In this step, we are creating a hive table for loading the sample data. If you have already loaded the data into a table then skip this step and jump to the next step. Let’s say we are having a hive table named emp_sports which stores employees details (sample data). We can create the table using below DDL and load the dat...