The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
OUTPUT clause in not enabled when using Read Database Operator
Hi,
I am trying to execute MERGE statement using Read Database operator. Not able to use OUTPUT clause in insert statement throwing syntax error. MERGE statement without OUTPUT clause is working fine in Execute SQL operator. But it is throwing error with output clause and also it doesn't have output port. , Please check the below (Merge.PNG) for the same.
Facing below error:
Thanks in advance.
Facing below error:
Thanks in advance.
Tagged:
0
Answers
you should use Execute SQL for statements that change the database. Read Database ist just for reading.
Regards,
Balázs
Basically output clause is only having issue there inside Read base.
Which database type are you using? The error message is coming from the database, so RapidMiner can't do a lot about it.
I just tested with Postgres, an insert statement wrapped in a common table expression worked and returned the new data in Read Database. So it is not completely impossible. You probably need to find a variant of the statement your database accepts in the "SELECT" context. If your database can wrap write statements in a common table expression, or you can create a function or procedure in the database that makes the changes, there is a chance to change the SQL.
Regards,
Balázs