knime / knimepy

Other
44 stars 15 forks source link

Add test for KNIME's behavior when user improperly labels types on input #4

Closed applio closed 5 years ago

applio commented 5 years ago

If the types are improperly declared by the user, then hopefully it bombs out and doesn't try to change everything into a String in the service table input node but I have not yet tested this to see what it does (we should test it to find out).

applio commented 5 years ago

Added test to document the behavior in commit 0a9dc19ca473368cdee28b261d26a9b952c6cc9c.

In situations where KNIME expects a particular data type but the Python code tries to send something other than the type promised in the "table-spec", Python will dutifully convert individual values to an appropriate JSON type no matter what the promised type is in the "table-spec" but on the Java/KNIME end any value which does not successfully convert to the type specified in the specified "table-spec" will result in a missing value.