-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
NIFI-12530: Support CREATE TABLE in Oracle database adapters #8175
Conversation
Thank you for working on this @mattyb149. 👍🏻 I just glanced over the code and have two remarks. Is there a reason, there is no test added for the Does it make sense to populate the columns into the |
I didn't add the unit test to the older OracleDatabaseAdapter because it was basically copy/paste, but since the new code is too, I will add that test to it. The only reason for using the List instead of the StringBuilder was for the join(), I felt it awkward to have to use a |
1364e16
to
9e2f531
Compare
9e2f531
to
4824311
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your work on this @mattyb149. The code changes look go to me. 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was able to build and test with local NiFi against an RDS instance using an Oracle JDBC driver. The UpdateDatabaseTable
I have was successfully able to create tables that didn't exist yet in the database.
Code changes also make sense to me.
Thanks for the reviews -- I will merge this! |
Signed-off-by: Joe Gresock <jgresock@gmail.com> This closes #8175.
Summary
NIFI-12530 This PR adds support for CREATE TABLE (via UpdateDatabaseRecord) for the two existing Oracle database adapters.
Tracking
Please complete the following tracking steps prior to pull request creation.
Issue Tracking
Pull Request Tracking
NIFI-00000
NIFI-00000
Pull Request Formatting
main
branchVerification
Please indicate the verification steps performed prior to pull request creation.
Build
mvn clean install -P contrib-check
Licensing
LICENSE
andNOTICE
filesDocumentation