Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Input port in JDBCRun operator should be optional #116

Open
natashadsilva opened this issue Dec 3, 2020 · 1 comment
Open

Input port in JDBCRun operator should be optional #116

natashadsilva opened this issue Dec 3, 2020 · 1 comment

Comments

@natashadsilva
Copy link
Member

Sometimes you want to use the operator to simply run a statement, such as create statement where there are no parameters. However, the input port is required, so it means you have to create a Beacon to send in dummy data just to run the operator, just like in this example: https://github.com/IBMStreams/streamsx.jdbc/blob/develop/samples/JDBCSample/com.ibm.streamsx.jdbc.sample.jdbcrun/JDBCRunSample.spl#L63

Could we change the operator model so that the input ports are all optional? This would make the operator can be more user friendly.

@markheger
Copy link
Member

Not possible to change the operator model to have two optional input ports. JDBCRun has one mandatory and one control port (optional).

Alternative solution: Create a new operator JDBCRunSingleStatement or JDBCSource without any input port, works like source operator.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants