Javatpoint Logo
Javatpoint Logo

Apache Pig CEIL Function

The Apache Pig CEIL function is used to round up the provided value to the nearest integer. It returns the smallest integer greater than or equal to a given value.


Example of CEIL Function

In this example, we round up each value exist in the file to the nearest integer.

Steps to execute CEIL Function

  • Create a text file in your local machine and insert the values.
Apache Pig CEIL Function
  • Check the values inserted in the text files.
Apache Pig CEIL 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 CEIL Function
  • Let's round up all the values that exist in the text file.
Apache Pig CEIL Function

Here, we got the desired output.

Next TopicFLOOR Function

Youtube For Videos Join Our Youtube Channel: Join Now


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Trending Technologies

B.Tech / MCA