Javatpoint Logo
Javatpoint Logo

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.
Apache Pig FLOOR Function
  • Check the values inserted in the text files.
Apache Pig FLOOR Function
  • 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.
Apache Pig FLOOR Function
  • Let's return the floor value.
Apache Pig FLOOR Function

Here, we got the desired output.

Next TopicLOG Function





Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA