[jira] Commented: (MAPREDUCE-1224) Calling "SELECT t.* from AS t" to get meta information is too expensive for big tables

Fri, 20 Nov 2009 17:32:04 -0800

    [ 
https://issues.apache.org/jira/browse/MAPREDUCE-1224?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12780867#action_12780867
 ] 

Jeff Hammerbacher commented on MAPREDUCE-1224:
----------------------------------------------

Should we try using actual JDBC metadata calls first? See, e.g., 
http://blog.codebeach.com/2008/12/database-metadata-with-jdbc.html

> Calling "SELECT t.* from <table> AS t" to get meta information is too 
> expensive for big tables
> ----------------------------------------------------------------------------------------------
>
>                 Key: MAPREDUCE-1224
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-1224
>             Project: Hadoop Map/Reduce
>          Issue Type: Improvement
>          Components: contrib/sqoop
>    Affects Versions: 0.20.1
>         Environment: all platforms, generic jdbc driver
>            Reporter: Spencer Ho
>         Attachments: MAPREDUCE-1224.patch, SqlManager.java
>
>
> The SqlManager uses the query, "SELECT t.* from <table> AS t" to get table 
> spec is too expensive for big tables, and it was called twice to generate 
> column names and types.  For tables that are big enough to be map-reduced, 
> this is too expensive to make sqoop useful.

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

Reply via email to