You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Miki Tebeka (JIRA)" <ji...@apache.org> on 2011/07/14 15:31:01 UTC

[jira] [Created] (AVRO-858) Add --fields to 'avro cat' to select fields printed out

Add --fields to 'avro cat' to select fields printed out
-------------------------------------------------------

                 Key: AVRO-858
                 URL: https://issues.apache.org/jira/browse/AVRO-858
             Project: Avro
          Issue Type: Improvement
            Reporter: Miki Tebeka
             Fix For: 1.6.0


Sometimes we want to see just a subset of the fields (specially if the record is big). Adding a --fields to select a subset of fields will help.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (AVRO-858) Add --fields to 'avro cat' to select fields printed out

Posted by "Miki Tebeka (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AVRO-858?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Miki Tebeka updated AVRO-858:
-----------------------------

    Attachment: AVRO-858.diff

> Add --fields to 'avro cat' to select fields printed out
> -------------------------------------------------------
>
>                 Key: AVRO-858
>                 URL: https://issues.apache.org/jira/browse/AVRO-858
>             Project: Avro
>          Issue Type: Improvement
>            Reporter: Miki Tebeka
>              Labels: patch, python
>             Fix For: 1.6.0
>
>         Attachments: AVRO-858.diff
>
>
> Sometimes we want to see just a subset of the fields (specially if the record is big). Adding a --fields to select a subset of fields will help.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (AVRO-858) Add --fields to 'avro cat' to select fields printed out

Posted by "Philip Zeyliger (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AVRO-858?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13065304#comment-13065304 ] 

Philip Zeyliger commented on AVRO-858:
--------------------------------------

The way the Java version does this is by letting you specify a read schema.  Then it projects the data through that schema, and that's how you lose fields.  Thoughts about that approach?

> Add --fields to 'avro cat' to select fields printed out
> -------------------------------------------------------
>
>                 Key: AVRO-858
>                 URL: https://issues.apache.org/jira/browse/AVRO-858
>             Project: Avro
>          Issue Type: Improvement
>            Reporter: Miki Tebeka
>              Labels: patch, python
>             Fix For: 1.6.0
>
>         Attachments: AVRO-858.diff
>
>
> Sometimes we want to see just a subset of the fields (specially if the record is big). Adding a --fields to select a subset of fields will help.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (AVRO-858) Add --fields to 'avro cat' to select fields printed out

Posted by "Doug Cutting (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AVRO-858?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Doug Cutting resolved AVRO-858.
-------------------------------

      Resolution: Fixed
        Assignee: Miki Tebeka
    Hadoop Flags: [Reviewed]

I committed this.  Thanks, Miki!

> Add --fields to 'avro cat' to select fields printed out
> -------------------------------------------------------
>
>                 Key: AVRO-858
>                 URL: https://issues.apache.org/jira/browse/AVRO-858
>             Project: Avro
>          Issue Type: Improvement
>            Reporter: Miki Tebeka
>            Assignee: Miki Tebeka
>              Labels: patch, python
>             Fix For: 1.6.0
>
>         Attachments: AVRO-858.diff
>
>
> Sometimes we want to see just a subset of the fields (specially if the record is big). Adding a --fields to select a subset of fields will help.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (AVRO-858) Add --fields to 'avro cat' to select fields printed out

Posted by "Miki Tebeka (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AVRO-858?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13065445#comment-13065445 ] 

Miki Tebeka commented on AVRO-858:
----------------------------------

I think it's more complicated to use in the command line. You'll need to create the read schema and pass it as an argument. Specifying --fields is easier (IMO) and requires less knowledge of Avro (which is one of the goals of this utility).

> Add --fields to 'avro cat' to select fields printed out
> -------------------------------------------------------
>
>                 Key: AVRO-858
>                 URL: https://issues.apache.org/jira/browse/AVRO-858
>             Project: Avro
>          Issue Type: Improvement
>            Reporter: Miki Tebeka
>              Labels: patch, python
>             Fix For: 1.6.0
>
>         Attachments: AVRO-858.diff
>
>
> Sometimes we want to see just a subset of the fields (specially if the record is big). Adding a --fields to select a subset of fields will help.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (AVRO-858) Add --fields to 'avro cat' to select fields printed out

Posted by "Doug Cutting (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AVRO-858?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13104862#comment-13104862 ] 

Doug Cutting commented on AVRO-858:
-----------------------------------

The two approaches seem complimentary to me.  I'm happy to see this committed.  Does anyone object?

> Add --fields to 'avro cat' to select fields printed out
> -------------------------------------------------------
>
>                 Key: AVRO-858
>                 URL: https://issues.apache.org/jira/browse/AVRO-858
>             Project: Avro
>          Issue Type: Improvement
>            Reporter: Miki Tebeka
>              Labels: patch, python
>             Fix For: 1.6.0
>
>         Attachments: AVRO-858.diff
>
>
> Sometimes we want to see just a subset of the fields (specially if the record is big). Adding a --fields to select a subset of fields will help.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (AVRO-858) Add --fields to 'avro cat' to select fields printed out

Posted by "Miki Tebeka (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AVRO-858?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13104116#comment-13104116 ] 

Miki Tebeka commented on AVRO-858:
----------------------------------

Any progress on this one?

> Add --fields to 'avro cat' to select fields printed out
> -------------------------------------------------------
>
>                 Key: AVRO-858
>                 URL: https://issues.apache.org/jira/browse/AVRO-858
>             Project: Avro
>          Issue Type: Improvement
>            Reporter: Miki Tebeka
>              Labels: patch, python
>             Fix For: 1.6.0
>
>         Attachments: AVRO-858.diff
>
>
> Sometimes we want to see just a subset of the fields (specially if the record is big). Adding a --fields to select a subset of fields will help.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira