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

Running SQL Statements other than SELECT, using Spark/JDBC Connector #5

Open
ghifariram opened this issue Dec 22, 2021 · 0 comments
Open

Comments

@ghifariram
Copy link

ghifariram commented Dec 22, 2021

Hi guys,

Is there any way to run the SQL statements other than SELECT, like ALTER, DELETE etc using Spark or JDBC Connector?

I am aware that we can do SELECT statement using dbtable options and call sqlContext.read.format("jdbc").options(options).load(), but I don't know if it is also works for any other statements.

What I'm trying to do is to overwrite the data in Kinetica based on certain conditions in a specific column other than the primary key, so I need to run the DELETE statement first before I insert the data.

Jar version that I am using: kinetica-spark-7.0.6.1-jar-with-dependencies.jar

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

No branches or pull requests

1 participant