* at the time of calling store must match.
*/
Schema runtimeSchema = Schema.getPigSchema(resourceSchema);
<<<<<<< HEAD
if(pigSchema != null){
if(! Schema.equals(runtimeSchema, pigSchema, false, false) ){
throw new FrontendException("Schema provided in store statement doesn't match with the Schema" +
"returned by Pig run-time. Schema provided in HowlStorer: "+pigSchema.toString()+ " Schema received from Pig runtime: "+runtimeSchema.toString());
}
} else {
pigSchema = runtimeSchema;
=======
if(! Schema.equals(runtimeSchema, pigSchema, false, true) ){
throw new FrontendException("Schema provided in store statement doesn't match with the Schema" +
"returned by Pig run-time. Schema provided in HowlStorer: "+pigSchema.toString()+ " Schema received from Pig runtime: "+runtimeSchema.toString());
>>>>>>> dc35d25c528466611db33fe8f1ac15234677e06f
}
}
|