Details

    • Type: New Feature New Feature
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.4.0-incubating
    • Fix Version/s: 1.4.0-incubating
    • Component/s: codegen
    • Labels:
    • Environment:

      64bit Ubuntu 10.10 Linux, Java build 1.6.0_24-b07, mysql 5.1.49-1ubuntu8.1

      Description

      Like the import tool, support using free-form query or table to import datas.
      example:
      codegen --connect jdbc:mysql://localhost/sqoop_datas --username root --password 123456 --query 'select * from sqoop_source_datas where $CONDITIONS'

        Activity

        Hide
        Hudson added a comment -

        Integrated in Sqoop-jdk-1.6 #54 (See https://builds.apache.org/job/Sqoop-jdk-1.6/54/)
        SQOOP-367 Codegen support for free-form query

        blee : http://svn.apache.org/viewvc/?view=rev&rev=1196921
        Files :

        • /incubator/sqoop/trunk/src/java/org/apache/sqoop/tool/CodeGenTool.java
        Show
        Hudson added a comment - Integrated in Sqoop-jdk-1.6 #54 (See https://builds.apache.org/job/Sqoop-jdk-1.6/54/ ) SQOOP-367 Codegen support for free-form query blee : http://svn.apache.org/viewvc/?view=rev&rev=1196921 Files : /incubator/sqoop/trunk/src/java/org/apache/sqoop/tool/CodeGenTool.java
        Hide
        Bilung Lee added a comment -

        Patch committed. Thanks for your patch, Guo Yun!

        Show
        Bilung Lee added a comment - Patch committed. Thanks for your patch, Guo Yun!
        Hide
        guoyun added a comment -

        the fix version,V1

        Show
        guoyun added a comment - the fix version,V1
        Hide
        guoyun added a comment -

        Bilung Lee ,Thank you!i have submitted the new patch,for name:codegen-support-free-form-query-V1.patch

        Show
        guoyun added a comment - Bilung Lee ,Thank you!i have submitted the new patch,for name:codegen-support-free-form-query-V1.patch
        Hide
        Bilung Lee added a comment - - edited

        Thanks for the patch! Look very good overall. Some minor stuff:
        1. Use TABLE_ARG for "table" just like what you did with SQL_QUERY_ARG in the exception messages.
        2. Run "ant checkstyle" in your sqoop directory and then check "checkstyle-errors.html" under "build" directory. There are some style complaints that need to be fixed.

        Show
        Bilung Lee added a comment - - edited Thanks for the patch! Look very good overall. Some minor stuff: 1. Use TABLE_ARG for "table" just like what you did with SQL_QUERY_ARG in the exception messages. 2. Run "ant checkstyle" in your sqoop directory and then check "checkstyle-errors.html" under "build" directory. There are some style complaints that need to be fixed.

          People

          • Assignee:
            guoyun
            Reporter:
            guoyun
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - 72h
              72h
              Remaining:
              Remaining Estimate - 72h
              72h
              Logged:
              Time Spent - Not Specified
              Not Specified

                Development