Javatpoint Logo
Javatpoint Logo

Apache Pig CBRT Function

The Apache Pig CBRT function is used to return the cube root of the expression.

Syntax

Example of CBRT Function

In this example, we find out the cube root of the given value.

Steps to execute the CBRT Function

  • Create a text file in your local machine and insert the values.
Apache Pig CBRT Function
  • Check the values inserted in the text files.
Apache Pig CBRT 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 CBRT Function
  • Let's return the cube root of each value.
Apache Pig CBRT Function

Here, we got the desired output.

Next TopicCEIL Function




Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Preparation


B.Tech / MCA