You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Miyakawa Taku (JIRA)" <ji...@apache.org> on 2012/12/09 10:57:21 UTC

[jira] [Updated] (PIG-3085) Errors and lacks in document "Built In Functions"

     [ https://issues.apache.org/jira/browse/PIG-3085?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Miyakawa Taku updated PIG-3085:
-------------------------------

    Description: 
Errors and lacks in document "Built In Functions"

This is a patch to fix errors in document "Built In Functions".

# Heading of the result table of ROUND function is wrongly written as ??CEIL(x)??
# "Syntax" clause of LAST_INDEX_OF function is wrongly written as ??LAST_INDEX_OF(expression)??, but the function actually takes three arguments
# "Syntax" clause of REGEX_EXTRACT_ALL function is wrongly written as ??REGEX_EXTRACT (string, regex)??
# An example of REPLACE function is terminated by a semicolon: ??REPLACE(string,'software','wiki');??, but the semicolon is not necessary in Pig Latin syntax
# "limit" argument of STRSPLIT function is described as ??The number of times the pattern ... is applied??. But actually, _limit-1_ is the maximum number of times the pattern is applied, and "limit" means the maximum length of the result tuple (if the value is positive). If the value is 0 or negative, not limit is applied.
# An example program of TOP function does not work, because it uses ??COUNT(*)??
# Fixes typos
## "COUNT_STAR is used -the- +to+ count ..."
## "delimit in JsonLoader or -JsonStorer- +JsonStorage+ ..."
## "using field -deliminters- +delimiters+ ..."
## "If you store -reading- +using+ delimiter "#" ..."
  # "The STORE -function- +statement+ specifies that the files ..."
  # "Limit" -> "limit" in a term definition of STRSPLIT function

  was:
Errors and lacks in document "Built In Functions"

This is a patch to fix errors in document "Built In Functions".

# Heading of the result table of ROUND function is wrongly written as ??CEIL(x)??
# "Syntax" clause of LAST_INDEX_OF function is wrongly written as ??LAST_INDEX_OF(expression)??, but the function actually takes three arguments
# "Syntax" clause of REGEX_EXTRACT_ALL function is wrongly written as ??REGEX_EXTRACT (string, regex)??
# An example of REPLACE function is terminated by a semicolon: ??REPLACE(string,'software','wiki');??, but the semicolon is not necessary in Pig Latin syntax
# "limit" argument of STRSPLIT function is described as ??The number of times the pattern ... is applied??. But actually, _limit-1_ is the maximum number of times the pattern is applied, and "limit" means the maximum length of the result tuple (if the value is positive). If the value is 0 or negative, not limit is applied.
# An example program of TOP function does not work, because it uses ??COUNT(*)??
# Fixes typos
  # "COUNT_STAR is used -the- +to+ count ..."
  # "delimit in JsonLoader or -JsonStorer- +JsonStorage+ ..."
  # "using field -deliminters- +delimiters+ ..."
  # "If you store -reading- +using+ delimiter "#" ..."
  # "The STORE -function- +statement+ specifies that the files ..."
  # "Limit" -> "limit" in a term definition of STRSPLIT function

    
> Errors and lacks in document "Built In Functions"
> -------------------------------------------------
>
>                 Key: PIG-3085
>                 URL: https://issues.apache.org/jira/browse/PIG-3085
>             Project: Pig
>          Issue Type: Bug
>          Components: documentation
>    Affects Versions: 0.10.0
>            Reporter: Miyakawa Taku
>
> Errors and lacks in document "Built In Functions"
> This is a patch to fix errors in document "Built In Functions".
> # Heading of the result table of ROUND function is wrongly written as ??CEIL(x)??
> # "Syntax" clause of LAST_INDEX_OF function is wrongly written as ??LAST_INDEX_OF(expression)??, but the function actually takes three arguments
> # "Syntax" clause of REGEX_EXTRACT_ALL function is wrongly written as ??REGEX_EXTRACT (string, regex)??
> # An example of REPLACE function is terminated by a semicolon: ??REPLACE(string,'software','wiki');??, but the semicolon is not necessary in Pig Latin syntax
> # "limit" argument of STRSPLIT function is described as ??The number of times the pattern ... is applied??. But actually, _limit-1_ is the maximum number of times the pattern is applied, and "limit" means the maximum length of the result tuple (if the value is positive). If the value is 0 or negative, not limit is applied.
> # An example program of TOP function does not work, because it uses ??COUNT(*)??
> # Fixes typos
> ## "COUNT_STAR is used -the- +to+ count ..."
> ## "delimit in JsonLoader or -JsonStorer- +JsonStorage+ ..."
> ## "using field -deliminters- +delimiters+ ..."
> ## "If you store -reading- +using+ delimiter "#" ..."
>   # "The STORE -function- +statement+ specifies that the files ..."
>   # "Limit" -> "limit" in a term definition of STRSPLIT function

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira