84
Apache Pig FLOOR Function
The Apache Pig FLOOR function is used to return the largest integer less than or equal to a given number.
Syntax
Example of FLOOR Function
In this example, we return the floor value of the given number.
Steps to execute FLOOR Function
- Create a text file in your local machine and insert the values.
- Check the values inserted in the text files.
- Upload the text files on HDFS in the specific directory.
- Open the pig MapReduce run mode.
- Load the file that contains the data.
- Now, execute and verify the data.
- Let’s return the floor value.
Here, we got the desired output.
Next TopicLOG Function