[
https://issues.apache.org/jira/browse/PIG-1822?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13018637#comment-13018637
]
Olga Natkovich commented on PIG-1822:
-------------------------------------
While figuring out what information is missing from the type related
documentation, I found that we have duplicated paragraphs under Schema section:
Schemas
Schemas enable you to assign names to fields and declare types for fields.
Schemas are optional but we encourage you to use them whenever possible; type
declarations result in better parse-time error checking and more efficient code
execution.
Schemas for simple types and complex types can be used anywhere a schema
definition is appropriate.
Schemas are defined with the LOAD, STREAM, and FOREACH operators using the AS
clause. If you define a schema using the LOAD operator, then it is the load
function that enforces the schema (see LOAD and User Defined Functions for more
information).
Known Schema Handling
Schemas enable you to assign names to fields and declare types for fields.
Schemas are optional but we encourage you to use them whenever possible; type
declarations result in better parse-time error checking and more efficient code
execution.
Schemas are defined for the LOAD, STREAM, and FOREACH operators using the AS
clause. If you define a schema using the LOAD operator, then it is the load
function that enforces the schema (see LOAD and User Defined Functions for more
information).
> Need to document how types work in Pig
> --------------------------------------
>
> Key: PIG-1822
> URL: https://issues.apache.org/jira/browse/PIG-1822
> Project: Pig
> Issue Type: Improvement
> Components: documentation
> Reporter: Olga Natkovich
> Assignee: Olga Natkovich
> Fix For: 0.9.0
>
>
> What is static and what is dynamic.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira