[
https://issues.apache.org/jira/browse/CASSANDRA-3847?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Brandon Williams updated CASSANDRA-3847:
----------------------------------------
Attachment: 3847.txt
Unfortunately, there's nothing we can do about pig catching errors and
rethrowing the "org.apache.pig.impl.logicalLayer.FrontendException: ERROR 2042:
Error in new logical plan. Try -Dpig.usenewlogicalplan=false." message, but we
can at least throw a helpful error into the log instead of an NPE.
> Pig should throw a useful error when the destination CF doesn't exist
> ---------------------------------------------------------------------
>
> Key: CASSANDRA-3847
> URL: https://issues.apache.org/jira/browse/CASSANDRA-3847
> Project: Cassandra
> Issue Type: Bug
> Components: Hadoop
> Affects Versions: 0.7.0
> Reporter: Brandon Williams
> Assignee: Brandon Williams
> Fix For: 1.0.8
>
> Attachments: 3847.txt
>
>
> When trying to store data to nonexistent CF, no good error is returned.
> Instead you get a message like:
> {noformat}
> [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 2042: Error in new
> logical plan. Try -Dpig.usenewlogicalplan=false.
> {noformat}
> Which, if you follow its advice, will eventually lead you to an NPE in
> initSchema.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira