onesaitplatform / onesaitplatform-cloud

Onesait Platform Community edition is a free, open-source Digital Platform that anyone can download and use to build a complete solution over it. This repo contains the Cloud Side of the Platform.
https://onesaitplatform.atlassian.net/wiki/spaces/OP/pages/360449/onesait+Platform+Cloud
Other
23 stars 30 forks source link

NodeRed Node Dynamic Query results in Class Cast Exception #130

Open UncleDinoso opened 4 weeks ago

UncleDinoso commented 4 weeks ago

Hy, i want to execute a simple update statement on a virtual entity, located in a postgresdb:

msg.ontology = 'airquality_observed_dynamicdata_hl'; msg.queryType = 'SQL'; msg.query = 'update airquality_observed_dynamicdata_hl set co2value = 0;'; return msg;

The debug output of the Dynamic Query Node is: "Error executing query. Ontology=airquality_observed_dynamicdata_hl, QueryType =SQL, Query = update airquality_observed_dynamicdata_hl set co2value = 0;. Cause = com.minsait.onesait.platform.persistence.exceptions.DBPersistenceException: java.lang.ClassCastException."

Select statements works flawful and with the query tool, i can execute the update statement without trouble, so i think, its a node-red node problem.

Schema of entity: image

renetashi commented 4 weeks ago

Hi @UncleDinoso, we are looking into it.

We'll try to replicate the behaivour and came you back to you with the result.