Apache Hive – Assignment-3

The majority of the blog entries are written in a style that novices may understand. I will give some practice tasks to be completed using Apache Hive in order to develop learning abilities and to provide practical exposure and knowledge growth.

There will be a set of assignments with data sets, but without solutions.

Title : StructInArray.
Dataset: Click here.

StructWithinArray-1

Assignment:
A CSV data file including Orders is supplied to you. Your assignment as follows:

1)
Load the data based on below table-structure.
CustID BIGINT,
CustName STRING,
Orders Array<Struct<OrderID: Int,OrderItem: string,Qty: Int,PricePerProduct: Decimal(9,2)>>

2) Get how much a customer is paid for the specific order.
3) Get specific customer’s (CustID = 1001112) information along with his orders.

Hints: Click here.

All the best.

One comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s