You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Alan Gates (JIRA)" <ji...@apache.org> on 2012/08/28 00:17:07 UTC

[jira] [Created] (PIG-2892) piggybank build failing on trunk

Alan Gates created PIG-2892:
-------------------------------

             Summary: piggybank build failing on trunk
                 Key: PIG-2892
                 URL: https://issues.apache.org/jira/browse/PIG-2892
             Project: Pig
          Issue Type: Bug
          Components: piggybank
            Reporter: Alan Gates
            Priority: Critical


When I try to build Piggybank I get:

{code}
   [javac] /grid/0/hortonal/src/pig/top/trunk/contrib/piggybank/java/build.xml:92: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
    [javac] Compiling 159 source files to /grid/0/hortonal/src/pig/top/trunk/contrib/piggybank/java/build/classes
    [javac] /grid/0/hortonal/src/pig/top/trunk/contrib/piggybank/java/src/main/java/org/apache/pig/piggybank/storage/DBStorage.java:121: cannot find symbol
    [javac] symbol  : method setDate(int,java.util.Date)
    [javac] location: interface java.sql.PreparedStatement
    [javac]             ps.setDate(sqlPos, ((DateTime) field).toDate());
{code}

--
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-2892) piggybank build failing on trunk

Posted by "Cheolsoo Park (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PIG-2892?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13443787#comment-13443787 ] 

Cheolsoo Park commented on PIG-2892:
------------------------------------

Hi Alan, I looked at PIG-2893, and his patch seems good to me. In addition, he updated the test case. Please go ahead close this as a duplicate. Thanks!
                
> piggybank build failing on trunk
> --------------------------------
>
>                 Key: PIG-2892
>                 URL: https://issues.apache.org/jira/browse/PIG-2892
>             Project: Pig
>          Issue Type: Bug
>          Components: piggybank
>            Reporter: Alan Gates
>            Assignee: Cheolsoo Park
>            Priority: Critical
>         Attachments: PIG-2892.patch
>
>
> When I try to build Piggybank I get:
> {code}
>    [javac] /grid/0/hortonal/src/pig/top/trunk/contrib/piggybank/java/build.xml:92: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
>     [javac] Compiling 159 source files to /grid/0/hortonal/src/pig/top/trunk/contrib/piggybank/java/build/classes
>     [javac] /grid/0/hortonal/src/pig/top/trunk/contrib/piggybank/java/src/main/java/org/apache/pig/piggybank/storage/DBStorage.java:121: cannot find symbol
>     [javac] symbol  : method setDate(int,java.util.Date)
>     [javac] location: interface java.sql.PreparedStatement
>     [javac]             ps.setDate(sqlPos, ((DateTime) field).toDate());
> {code}

--
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-2892) piggybank build failing on trunk

Posted by "Cheolsoo Park (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIG-2892?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Cheolsoo Park updated PIG-2892:
-------------------------------

    Attachment: PIG-2892.patch

This is a regression from PIG-1314.

The problem is that org.joda.time.DateTime.toDate() returns java.util.Date while java.sql.Date is expected for java.sql.PreparedStatement.setDate().

Attached is a patch that converts java.util.Date to java.sql.Date before calling java.sql.PreparedStatement.setDate().

Thanks!
                
> piggybank build failing on trunk
> --------------------------------
>
>                 Key: PIG-2892
>                 URL: https://issues.apache.org/jira/browse/PIG-2892
>             Project: Pig
>          Issue Type: Bug
>          Components: piggybank
>            Reporter: Alan Gates
>            Priority: Critical
>         Attachments: PIG-2892.patch
>
>
> When I try to build Piggybank I get:
> {code}
>    [javac] /grid/0/hortonal/src/pig/top/trunk/contrib/piggybank/java/build.xml:92: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
>     [javac] Compiling 159 source files to /grid/0/hortonal/src/pig/top/trunk/contrib/piggybank/java/build/classes
>     [javac] /grid/0/hortonal/src/pig/top/trunk/contrib/piggybank/java/src/main/java/org/apache/pig/piggybank/storage/DBStorage.java:121: cannot find symbol
>     [javac] symbol  : method setDate(int,java.util.Date)
>     [javac] location: interface java.sql.PreparedStatement
>     [javac]             ps.setDate(sqlPos, ((DateTime) field).toDate());
> {code}

--
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-2892) piggybank build failing on trunk

Posted by "Cheolsoo Park (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIG-2892?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Cheolsoo Park updated PIG-2892:
-------------------------------

    Assignee: Cheolsoo Park
      Status: Patch Available  (was: Open)
    
> piggybank build failing on trunk
> --------------------------------
>
>                 Key: PIG-2892
>                 URL: https://issues.apache.org/jira/browse/PIG-2892
>             Project: Pig
>          Issue Type: Bug
>          Components: piggybank
>            Reporter: Alan Gates
>            Assignee: Cheolsoo Park
>            Priority: Critical
>         Attachments: PIG-2892.patch
>
>
> When I try to build Piggybank I get:
> {code}
>    [javac] /grid/0/hortonal/src/pig/top/trunk/contrib/piggybank/java/build.xml:92: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
>     [javac] Compiling 159 source files to /grid/0/hortonal/src/pig/top/trunk/contrib/piggybank/java/build/classes
>     [javac] /grid/0/hortonal/src/pig/top/trunk/contrib/piggybank/java/src/main/java/org/apache/pig/piggybank/storage/DBStorage.java:121: cannot find symbol
>     [javac] symbol  : method setDate(int,java.util.Date)
>     [javac] location: interface java.sql.PreparedStatement
>     [javac]             ps.setDate(sqlPos, ((DateTime) field).toDate());
> {code}

--
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-2892) piggybank build failing on trunk

Posted by "Alan Gates (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PIG-2892?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13443786#comment-13443786 ] 

Alan Gates commented on PIG-2892:
---------------------------------

Thejas filed a separate issue for this, PIG-2893.  He's also posted a patch over on that JIRA.  It looked like it handled the date a little differently.  I'm not sure which is the right solution, you should work with Thejas to figure out which is the right one.  If it's ok with you I'll mark this one as a duplicate.
                
> piggybank build failing on trunk
> --------------------------------
>
>                 Key: PIG-2892
>                 URL: https://issues.apache.org/jira/browse/PIG-2892
>             Project: Pig
>          Issue Type: Bug
>          Components: piggybank
>            Reporter: Alan Gates
>            Assignee: Cheolsoo Park
>            Priority: Critical
>         Attachments: PIG-2892.patch
>
>
> When I try to build Piggybank I get:
> {code}
>    [javac] /grid/0/hortonal/src/pig/top/trunk/contrib/piggybank/java/build.xml:92: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
>     [javac] Compiling 159 source files to /grid/0/hortonal/src/pig/top/trunk/contrib/piggybank/java/build/classes
>     [javac] /grid/0/hortonal/src/pig/top/trunk/contrib/piggybank/java/src/main/java/org/apache/pig/piggybank/storage/DBStorage.java:121: cannot find symbol
>     [javac] symbol  : method setDate(int,java.util.Date)
>     [javac] location: interface java.sql.PreparedStatement
>     [javac]             ps.setDate(sqlPos, ((DateTime) field).toDate());
> {code}

--
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-2892) piggybank build failing on trunk

Posted by "Alan Gates (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIG-2892?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alan Gates updated PIG-2892:
----------------------------

    Resolution: Duplicate
        Status: Resolved  (was: Patch Available)

Duplicates PIG-2893
                
> piggybank build failing on trunk
> --------------------------------
>
>                 Key: PIG-2892
>                 URL: https://issues.apache.org/jira/browse/PIG-2892
>             Project: Pig
>          Issue Type: Bug
>          Components: piggybank
>            Reporter: Alan Gates
>            Assignee: Cheolsoo Park
>            Priority: Critical
>         Attachments: PIG-2892.patch
>
>
> When I try to build Piggybank I get:
> {code}
>    [javac] /grid/0/hortonal/src/pig/top/trunk/contrib/piggybank/java/build.xml:92: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
>     [javac] Compiling 159 source files to /grid/0/hortonal/src/pig/top/trunk/contrib/piggybank/java/build/classes
>     [javac] /grid/0/hortonal/src/pig/top/trunk/contrib/piggybank/java/src/main/java/org/apache/pig/piggybank/storage/DBStorage.java:121: cannot find symbol
>     [javac] symbol  : method setDate(int,java.util.Date)
>     [javac] location: interface java.sql.PreparedStatement
>     [javac]             ps.setDate(sqlPos, ((DateTime) field).toDate());
> {code}

--
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