What are the different String functions available in pig?
Answer / Suraj Singh Rana
In Pig, there are several string functions available. Here are some of them:n1. CONCAT("): Concatenates strings.n2. INITCAP("): Capitalizes the first letter of each word in a string.n3. LOWERCASE(") and UPPERCASE("): Convert case of a string to lowercase or uppercase respectively.n4. LENGTH("): Returns the length of a string.n5. SUBSTRING(", start, length): Extracts a substring from a given position starting for a specified length.n6. INDEXOF(", substr): Finds the position of substr in the string.n7. REPLACE(", old_substr, new_substr): Replaces all occurrences of old_substr with new_substr in the string.
| Is This Answer Correct ? | 0 Yes | 0 No |
Why should we use ‘orderby’ keyword in pig scripts?
What is the use of illustrate in pig?
Why should we use ‘distinct’ keyword in Pig scripts?
What does illustrate do in Apache Pig?
Explain the LOAD keyword in Pig script?
Explain Features of Pig?
Is Pig script case sensitive?
I have a relation r. How can I get the top 10 tuples from the relation r?
How Pig differs from MapReduce?
What are the advantages of pig language?
Does Pig support multi-line commands?
Explain textloader function?
Apache Hadoop (394)
MapReduce (354)
Apache Hive (345)
Apache Pig (225)
Apache Spark (991)
Apache HBase (164)
Apache Flume (95)
Apache Impala (72)
Apache Cassandra (392)
Apache Mahout (35)
Apache Sqoop (82)
Apache ZooKeeper (65)
Apache Ambari (93)
Apache HCatalog (34)
Apache HDFS Hadoop Distributed File System (214)
Apache Kafka (189)
Apache Avro (26)
Apache Presto (15)
Apache Tajo (26)
Hadoop General (407)