You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Cheolsoo Park (JIRA)" <ji...@apache.org> on 2012/08/28 02:12:07 UTC
[jira] [Updated] (PIG-2892) piggybank build failing on trunk
[ 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