Skip to content

Conversation

@MrRahulSharma
Copy link
Contributor

JIRA : https://cdap.atlassian.net/browse/PLUGIN-1512

Fixed a similar issue in the AbstractDBSink as well.

@itsankit-google itsankit-google changed the title Fix/result set indexing issue [PLUGIN-1512] Fix/result set indexing issue Feb 23, 2023
Copy link
Contributor

@itsankit-google itsankit-google left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

couple of nits, otherwise LGTM.

@itsankit-google
Copy link
Contributor

itsankit-google commented Feb 23, 2023

Please fix the unit tests failures.

Error:  Tests run: 4, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 0.355 s <<< FAILURE! - in io.cdap.plugin.db.batch.sink.AbstractDBSinkTest
Error:  testGetMatchedColumnTypeList(io.cdap.plugin.db.batch.sink.AbstractDBSinkTest)  Time elapsed: 0.288 s  <<< ERROR!
java.sql.SQLException: No column with name ID found
	at io.cdap.plugin.db.batch.sink.AbstractDBSinkTest.testGetMatchedColumnTypeList(AbstractDBSinkTest.java:60)

Error:  testSubsetColumnsInResultSet(io.cdap.plugin.db.batch.sink.AbstractDBSinkTest)  Time elapsed: 0 s  <<< ERROR!
java.sql.SQLException: No column with name SCORE found
	at io.cdap.plugin.db.batch.sink.AbstractDBSinkTest.testSubsetColumnsInResultSet(AbstractDBSinkTest.java:191)

Error:  testDifferentOrderOfFieldsInResultSet(io.cdap.plugin.db.batch.sink.AbstractDBSinkTest)  Time elapsed: 0 s  <<< ERROR!
java.sql.SQLException: No column with name NAME found
	at io.cdap.plugin.db.batch.sink.AbstractDBSinkTest.testDifferentOrderOfFieldsInResultSet(AbstractDBSinkTest.java:143)

…stead of field index from Schema.

Removed the buggy logic of index in Oracle plugin
@MrRahulSharma MrRahulSharma force-pushed the fix/ResultSetIndexingIssue branch from eb7b1d6 to ab9b8e6 Compare February 24, 2023 05:27
@MrRahulSharma MrRahulSharma merged commit 2f5803e into develop Feb 24, 2023
@itsankit-google itsankit-google deleted the fix/ResultSetIndexingIssue branch February 24, 2023 08:13
Nikitapaliwal123 pushed a commit that referenced this pull request Mar 24, 2023
…stead of field index from Schema. (#356)

Removed the buggy logic of index in Oracle plugin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants