FAQ
[HQL] Outputting select into file
---------------------------------

Key: HADOOP-2595
URL: https://issues.apache.org/jira/browse/HADOOP-2595
Project: Hadoop
Issue Type: New Feature
Components: contrib/hbase
Affects Versions: 0.16.0
Reporter: Edward Yoon
Assignee: Edward Yoon
Priority: Minor
Fix For: 0.17.0


{code}
SELECT { column_name [, column_name] ... | expr[alias] | * }
FROM table_name
[WHERE row = 'row-key' | STARTING FROM 'row-key' [UNTIL 'stop-key']]
[NUM_VERSIONS = version_count]
[TIMESTAMP 'timestamp']
[LIMIT = row_count]
[INTO FILE 'file_name'] <----------------*
{code}

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

Search Discussions

  • stack (JIRA) at Jan 15, 2008 at 12:14 am
    [ https://issues.apache.org/jira/browse/HADOOP-2595?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12558863#action_12558863 ]

    stack commented on HADOOP-2595:
    -------------------------------

    You think this the way to go Edward? Don't you want to specify a format for the output file (html|txt|binary|etc). You added formatting as command-line option to the shell... making it so you could do: "$ echo 'SELECT * FROM ... '| ./bin/hbase shell --format=SOME_FORMAT > outputfile'. Isn't that sufficient? (How does mysql do this? Or how does mysql read into current mysql shell a list of commands to run? I don't remember ...)
    [HQL] Outputting select into file
    ---------------------------------

    Key: HADOOP-2595
    URL: https://issues.apache.org/jira/browse/HADOOP-2595
    Project: Hadoop
    Issue Type: New Feature
    Components: contrib/hbase
    Affects Versions: 0.16.0
    Reporter: Edward Yoon
    Assignee: Edward Yoon
    Priority: Minor
    Fix For: 0.17.0


    {code}
    SELECT { column_name [, column_name] ... | expr[alias] | * }
    FROM table_name
    [WHERE row = 'row-key' | STARTING FROM 'row-key' [UNTIL 'stop-key']]
    [NUM_VERSIONS = version_count]
    [TIMESTAMP 'timestamp']
    [LIMIT = row_count]
    [INTO FILE 'file_name'] <----------------*
    {code}
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Edward Yoon (JIRA) at Jan 15, 2008 at 12:58 am
    [ https://issues.apache.org/jira/browse/HADOOP-2595?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12558889#action_12558889 ]

    Edward Yoon commented on HADOOP-2595:
    -------------------------------------

    MySQL?

    {code}
    $ mysql -u USER -p Database -e "select * from stack;" > /tmp/stack

    Or

    [INTO OUTFILE 'file_name' export_options | INTO DUMPFILE 'file_name' | INTO var_name [, var_name]]
    {code}

    IMO, i don't think it is necessary thing. (It was added by inchul)
    But, I believe the dynamic capabilities will be provided flexible and adaptable to changing needs without hard-code changes.

    Are you for or against my opinion?
    [HQL] Outputting select into file
    ---------------------------------

    Key: HADOOP-2595
    URL: https://issues.apache.org/jira/browse/HADOOP-2595
    Project: Hadoop
    Issue Type: New Feature
    Components: contrib/hbase
    Affects Versions: 0.16.0
    Reporter: Edward Yoon
    Assignee: Edward Yoon
    Priority: Minor
    Fix For: 0.17.0


    {code}
    SELECT { column_name [, column_name] ... | expr[alias] | * }
    FROM table_name
    [WHERE row = 'row-key' | STARTING FROM 'row-key' [UNTIL 'stop-key']]
    [NUM_VERSIONS = version_count]
    [TIMESTAMP 'timestamp']
    [LIMIT = row_count]
    [INTO FILE 'file_name'] <----------------*
    {code}
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • stack (JIRA) at Jan 15, 2008 at 5:13 am
    [ https://issues.apache.org/jira/browse/HADOOP-2595?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12558923#action_12558923 ]

    stack commented on HADOOP-2595:
    -------------------------------

    Your opinion aligns w/ mine it seems. You say, "IMO, I don't think it is a necessary thing." I agree. It complicates the SELECT (which is already complex) espeically when you start adding output formats. There is already an sql-like means of specifying formats by passing --format when you invoke the shell. I say, lets just use it rather than have to support file formats in two places. Any chance of having 'INTO OUTFILE' removed?
    [HQL] Outputting select into file
    ---------------------------------

    Key: HADOOP-2595
    URL: https://issues.apache.org/jira/browse/HADOOP-2595
    Project: Hadoop
    Issue Type: New Feature
    Components: contrib/hbase
    Affects Versions: 0.16.0
    Reporter: Edward Yoon
    Assignee: Edward Yoon
    Priority: Minor
    Fix For: 0.17.0


    {code}
    SELECT { column_name [, column_name] ... | expr[alias] | * }
    FROM table_name
    [WHERE row = 'row-key' | STARTING FROM 'row-key' [UNTIL 'stop-key']]
    [NUM_VERSIONS = version_count]
    [TIMESTAMP 'timestamp']
    [LIMIT = row_count]
    [INTO FILE 'file_name'] <----------------*
    {code}
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Edward Yoon (JIRA) at Jan 15, 2008 at 5:22 am
    [ https://issues.apache.org/jira/browse/HADOOP-2595?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12558925#action_12558925 ]

    Edward Yoon commented on HADOOP-2595:
    -------------------------------------

    Oh, i see. Thanks.
    Let me see about it.
    [HQL] Outputting select into file
    ---------------------------------

    Key: HADOOP-2595
    URL: https://issues.apache.org/jira/browse/HADOOP-2595
    Project: Hadoop
    Issue Type: New Feature
    Components: contrib/hbase
    Affects Versions: 0.16.0
    Reporter: Edward Yoon
    Assignee: Edward Yoon
    Priority: Minor
    Fix For: 0.17.0


    {code}
    SELECT { column_name [, column_name] ... | expr[alias] | * }
    FROM table_name
    [WHERE row = 'row-key' | STARTING FROM 'row-key' [UNTIL 'stop-key']]
    [NUM_VERSIONS = version_count]
    [TIMESTAMP 'timestamp']
    [LIMIT = row_count]
    [INTO FILE 'file_name'] <----------------*
    {code}
    --
    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
groupcommon-dev @
categorieshadoop
postedJan 14, '08 at 4:21a
activeJan 15, '08 at 5:22a
posts5
users1
websitehadoop.apache.org...
irc#hadoop

1 user in discussion

Edward Yoon (JIRA): 5 posts

People

Translate

site design / logo © 2022 Grokbase