pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Prashant Kommireddi (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (PIG-2994) Grunt shortcuts
Date Tue, 23 Oct 2012 05:45:12 GMT

    [ https://issues.apache.org/jira/browse/PIG-2994?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13482130#comment-13482130

Prashant Kommireddi commented on PIG-2994:

Nice, I think this would be useful. Like you said backslash (with t,r,n) might be confused
with the tab, newline delimiters. How about using a colon instead?
> Grunt shortcuts
> ---------------
>                 Key: PIG-2994
>                 URL: https://issues.apache.org/jira/browse/PIG-2994
>             Project: Pig
>          Issue Type: New Feature
>          Components: grunt
>            Reporter: Prasanth J
>            Priority: Minor
> This feature is aimed at providing shortcuts for frequently used commands like illustrate,
dump, explain, describe, quit, help etc. This feature is inspired from postgres(psql) shortcuts.
I tried implementing a simple shortcut for quitting the grunt shell using \q with very minimal
changes. I think this feature will help save many keystrokes for users. If this feature looks
useful I can submit the current patch for review and go ahead with implementing the following
> \i <alias> - illustrate
> \e <alias> - explain
> \de <alias> - describe
> \du <alias> - dump 
> \h - help
> This will also be useful to view information about tables/statistics stored in HCatalog
similar to the way psql does. 
> \dt <alias> - display table
> \dm - display metadata
> etc..
> except \t, \r and \n delimiters we should be able to use all other characters as shortcuts.

> Please let me know your thoughts.

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

View raw message