You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Prasanth J (JIRA)" <ji...@apache.org> on 2012/10/20 05:42:11 UTC
[jira] [Created] (PIG-2994) Grunt shortcuts
Prasanth J created PIG-2994:
-------------------------------
Summary: 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 shortcuts
\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
[jira] [Updated] (PIG-2994) Grunt shortcuts
Posted by "Prasanth J (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIG-2994?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Prasanth J updated PIG-2994:
----------------------------
Attachment: PIG-2994.1.git.patch
> 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
> Attachments: PIG-2994.1.git.patch
>
>
> 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 shortcuts
> \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
[jira] [Assigned] (PIG-2994) Grunt shortcuts
Posted by "Prasanth J (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIG-2994?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Prasanth J reassigned PIG-2994:
-------------------------------
Assignee: Prasanth J
> 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
> Assignee: Prasanth J
> Priority: Minor
> Attachments: PIG-2994.1.git.patch
>
>
> 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 shortcuts
> \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
[jira] [Commented] (PIG-2994) Grunt shortcuts
Posted by "Prasanth J (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIG-2994?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13508197#comment-13508197 ]
Prasanth J commented on PIG-2994:
---------------------------------
The attached patch adds grunt shortcuts for most commonly used diagnostic commands. Following shortcuts were used for diagnostic commands
\i - illustrate
\d - dump
\de - describe
\e - explain
For all the above commands if alias is ignored the last defined alias will be used.
Also noticed that the default implementation throws error when alias is ignored for illustrate and explain commands. This patch modifies it to use the last defined alias when alias is ignored. Is there any reason why the default implementation (processIllustrate and processExplain) doesn't consider the last alias when alias is ignored?
Additionally, \q shortcut is used for quitting the grunt shell.
> 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
> Attachments: PIG-2994.1.git.patch
>
>
> 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 shortcuts
> \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
[jira] [Commented] (PIG-2994) Grunt shortcuts
Posted by "Prashant Kommireddi (JIRA)" <ji...@apache.org>.
[ 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 shortcuts
> \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
[jira] [Commented] (PIG-2994) Grunt shortcuts
Posted by "Prashant Kommireddi (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIG-2994?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13483067#comment-13483067 ]
Prashant Kommireddi commented on PIG-2994:
------------------------------------------
I support having keyboard shortcuts for Pig. Committers, thoughts?
> 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 shortcuts
> \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
[jira] [Commented] (PIG-2994) Grunt shortcuts
Posted by "Prasanth J (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIG-2994?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13482135#comment-13482135 ]
Prasanth J commented on PIG-2994:
---------------------------------
The reason I thought of using \ instead of other char is that, it will be easy for postgres users(not sure if any other databases support shell shortcuts) to easily adapt to this convention (colon shouldn't be hard though). This convention will be more useful for viewing/exploring HCat tables, and for frequently used diagnostic operators (dump, describe, explain, illustrate). Since these operators doesn't start with t,r,n, IMHO it will not be confused with tab, newline.
> 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 shortcuts
> \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