You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Koji Noguchi (JIRA)" <ji...@apache.org> on 2013/09/03 20:27:52 UTC
[jira] [Updated] (PIG-3447) Compiler warning message dropped for
CastLineageSetter and others with no enum kind
[ https://issues.apache.org/jira/browse/PIG-3447?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Koji Noguchi updated PIG-3447:
------------------------------
Attachment: pig-3447-v01.txt
With the patch, it'll print out
{noformat}
2013-09-03 13:58:20,625 [main] WARN org.apache.pig.PigServer - Encountered Warning NO_LOAD_FUNCTION_FOR_CASTING_BYTEARRAY 1 time(s).
{noformat}
If anyone still calls CompilationMessageCollector.collect without enum KIND, then it'll at least print out
{noformat}
2013-08-30 22:25:20,940 [main] WARN org.apache.pig.PigServer - Encountered Warning Aggregated unknown kind messages. Please set -Daggregate.warning=false to retrieve these messages 1 time(s).
{noformat}
Before, it wasn't printing out anything.
With -Daggregate.warning=false, it'll print out the following (even without this patch).
{noformat}
2013-09-03 14:24:48,275 [main] WARN org.apache.pig.PigServer - Cannot resolve load function to use for casting from bytearray to chararray.
{noformat}
> Compiler warning message dropped for CastLineageSetter and others with no enum kind
> -----------------------------------------------------------------------------------
>
> Key: PIG-3447
> URL: https://issues.apache.org/jira/browse/PIG-3447
> Project: Pig
> Issue Type: Bug
> Reporter: Koji Noguchi
> Assignee: Koji Noguchi
> Priority: Trivial
> Attachments: pig-3447-v01.txt
>
>
> Following compiler warning was never shown to users for two reasons.
> {noformat}
> //./src/org/apache/pig/newplan/logical/visitor/CastLineageSetter.java
> 106 if(inLoadFunc == null){
> 107 String msg = "Cannot resolve load function to use for casting from " +
> 108 DataType.findTypeName(inType) + " to " +
> 109 DataType.findTypeName(outType) + ". ";
> 110 msgCollector.collect(msg, MessageType.Warning);
> 111 }
> {noformat}
> # CompilationMessageCollector.logMessages or logAllMessages not being called after CastLineageSetter.visit.
> # CompilationMessageCollector.collect with no KIND don't print out any messages when aggregate.warning=true (default)
--
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