March 2019
Beginner to intermediate
182 pages
4h 6m
English
In this section, we will cover the following topics:
Let's assume that the following code is our production line:
ignore("loading data on prod from hive") { UserDataLogic.loadAndGetAmount(spark, HiveDataLoader.loadUserTransactions) }
Here, we are using the UserDataLogic.loadAndGetAmount function, which needs to load our user data transaction and get the amount of the transaction. This method takes two arguments. The first argument is a sparkSession and the second argument is the provider of sparkSession, which takes SparkSession and returns DataFrame, as shown in the following example:
object ...
Read now
Unlock full access