private String getConflictingTypeErrorMessage(ConflictingFieldTypeInfoException e, String operatorName) { return "Conflicting type information for field " + e.getFieldNumber() + " in node '" + operatorName + "' between types declared in the node's " + "contract and types inferred from successor contracts. Conflicting types: " + e.getPreviousType() + " and " + e.getNewType() + ". Most probable cause: Invalid constant field annotations."; }
private void addSchemaToSchema(T sourceSchema, T targetSchema, String opName) { try { for (Map.Entry<Integer, X> entry : sourceSchema) { Integer pos = entry.getKey(); targetSchema.addType(pos, entry.getValue()); } } catch (ConflictingFieldTypeInfoException e) { throw new CompilerPostPassException("Conflicting type information for field " + e.getFieldNumber() + " in node '" + opName + "' propagated from successor node. " + "Conflicting types: " + e.getPreviousType() + " and " + e.getNewType() + ". Most probable cause: Invalid constant field annotations."); } }
private void addSchemaToSchema(T sourceSchema, T targetSchema, OptimizerNode optNode, int input) { try { for (Map.Entry<Integer, X> entry : sourceSchema) { Integer pos = entry.getKey(); SemanticProperties sprops = optNode.getSemanticProperties(); if (sprops != null && sprops.getForwardingTargetFields(input, pos) != null && sprops.getForwardingTargetFields(input, pos).contains(pos)) { targetSchema.addType(pos, entry.getValue()); } } } catch (ConflictingFieldTypeInfoException e) { throw new CompilerPostPassException("Conflicting type information for field " + e.getFieldNumber() + " in node '" + optNode.getOperator().getName() + "' propagated from successor node. " + "Conflicting types: " + e.getPreviousType() + " and " + e.getNewType() + ". Most probable cause: Invalid constant field annotations."); } }
throw new CompilerPostPassException("Conflicting type information for field " + e.getFieldNumber() + " in node '" + iterationNode.getProgramOperator().getName() + "'. Contradicting types between the " + "result of the iteration and the solution set schema: " + e.getPreviousType() + " and " + e.getNewType() + ". Most probable cause: Invalid constant field annotations.");