Skip to content

Conversation

@bharatgulati
Copy link
Contributor

cloudsql-mysql e2e

@bharatgulati bharatgulati marked this pull request as ready for review June 14, 2023 06:56
@bharatgulati bharatgulati force-pushed the cloudSQL-mySQL-e2e branch 5 times, most recently from 411a5c0 to 6905e24 Compare June 15, 2023 04:29
@Vipinofficial11 Vipinofficial11 marked this pull request as draft June 15, 2023 07:38
@bharatgulati bharatgulati force-pushed the cloudSQL-mySQL-e2e branch 6 times, most recently from 3f7326e to 38c502d Compare June 21, 2023 04:58
@bharatgulati bharatgulati marked this pull request as ready for review June 21, 2023 04:59
@sumitjnn sumitjnn self-assigned this Jul 14, 2023
}
}


Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: Remove extra empty line

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed extra line.

package io.cdap.plugin.cloudmysql.stepsdesign;



Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: Remove extra empty line

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed.

@@ -0,0 +1,21 @@
/*
* Copyright © 2022 Cask Data, Inc.
Copy link
Contributor

Choose a reason for hiding this comment

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

fix year

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changed it to '2023'

Comment on lines 39 to 42



Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: Remove extra empty lines (keep only 1)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed extra line.

## License for the specific language governing permissions and limitations under
# the License..

@CloudMySql
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this also be a required test (@CloudMySql_Required) similar to the one for sink (cloudsql-mysql-plugin/src/e2e-test/features/sink/CloudMySqlDesignTime.feature)?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The Required tag has been included for every feature of the source and sink. Added the @CloudMySql_Required tag to this feature.

ResultSet rs = statement.executeQuery(countQuery)) {
int num = 0;
while (rs.next()) {
num = (rs.getInt(1));
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
num = (rs.getInt(1));
num = rs.getInt(1);

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.


public static void createTargetDatatypesTable(String targetTable) throws SQLException, ClassNotFoundException {
try (Connection connect = getCloudSqlConnection(); Statement statement = connect.createStatement()) {
String datatypesColumns = PluginPropertyUtils.pluginProp("datatypesColumns");
Copy link
Contributor

Choose a reason for hiding this comment

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

Use constant

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Replaced with constants.

public static List<Object> bigQueryRows = new ArrayList<>();
public static Gson gson = new Gson();

public static void main(String[] args) throws SQLException, ClassNotFoundException {
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove the main method

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed the main function.


boolean recordsMatched = BQValidation.validateDBAndBQRecordValues(
PluginPropertyUtils.pluginProp("sourceTable"),
PluginPropertyUtils.pluginProp("bqTargetTable"));
Copy link
Contributor

Choose a reason for hiding this comment

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

use constants

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@yjhawar yjhawar self-assigned this Jul 19, 2023
@sumitjnn
Copy link
Contributor

Please check and fix build failures

@sumitjnn sumitjnn added build and removed build labels Jul 19, 2023
@sumitjnn
Copy link
Contributor

Let's ensure e2e build passes before merging

@bharatgulati bharatgulati force-pushed the cloudSQL-mySQL-e2e branch 4 times, most recently from 6ab4ca0 to 9e0903d Compare July 20, 2023 09:20
@sumitjnn sumitjnn merged commit cb5e3ee into data-integrations:develop Jul 20, 2023
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.

4 participants