I want to calculate the size of variable and put some check on size.
Sign Up to our social questions and Answers Engine to ask questions, answer people's questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people's questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
We want to connect the people who have knowledge to the people who need it, to bring together people with different perspectives so they can understand each other better, and to empower everyone to share their knowledge.
You can use SIZE() to calculate the length of pig fields. If the variable type is String then SIZE(<variable name>) else you can cast before calculating the size like SIZE((chararray)<variable name>)
You can use SIZE() to calculate the length of pig fields.
If the variable type is String then
SIZE(<variable name>)
else you can cast before calculating the size like
See lessSIZE((chararray)<variable name>)