Grokbase Groups Pig dev August 2008
FAQ
notations for data bag and data map are confusing
-------------------------------------------------

Key: PIG-393
URL: https://issues.apache.org/jira/browse/PIG-393
Project: Pig
Issue Type: Wish
Reporter: Rong-En Fan
Priority: Minor


In Pig document, we use {} for data bag and [] for data map. While data bag is more like a collection (a list of other data) and data map is like a hash, their corresponding notation in other language like python (and hash in perl), is actually the other way around. In Python, they use [] for list and {} for map (dictionary). In perl, they use {} for hash, too. The notations in Pig is very confusing for developers who are familiar with Python/perl.


--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Search Discussions

  • Alan Gates (JIRA) at Sep 2, 2008 at 7:32 pm
    [ https://issues.apache.org/jira/browse/PIG-393?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12627782#action_12627782 ]

    Alan Gates commented on PIG-393:
    --------------------------------

    I agree that if we were going to start over from scratch it would be better to use {} for a map and [] for a bag. But we have users out there using pig as is, and possibly writing post-pig parsers to deal with data. So I don't want to change our current output unless we have to.
    notations for data bag and data map are confusing
    -------------------------------------------------

    Key: PIG-393
    URL: https://issues.apache.org/jira/browse/PIG-393
    Project: Pig
    Issue Type: Wish
    Reporter: Rong-En Fan
    Priority: Minor

    In Pig document, we use {} for data bag and [] for data map. While data bag is more like a collection (a list of other data) and data map is like a hash, their corresponding notation in other language like python (and hash in perl), is actually the other way around. In Python, they use [] for list and {} for map (dictionary). In perl, they use {} for hash, too. The notations in Pig is very confusing for developers who are familiar with Python/perl.
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupdev @
categoriespig, hadoop
postedAug 22, '08 at 6:23a
activeSep 2, '08 at 7:32p
posts2
users1
websitepig.apache.org

1 user in discussion

Alan Gates (JIRA): 2 posts

People

Translate

site design / logo © 2022 Grokbase