2
2
3
3
import io .cdap .e2e .utils .PluginPropertyUtils ;
4
4
import org .junit .Assert ;
5
-
6
5
import java .sql .*;
7
6
import java .util .Date ;
8
7
import java .util .GregorianCalendar ;
@@ -108,8 +107,6 @@ public static void createSourceTable(String sourceTable) throws SQLException, Cl
108
107
statement .executeUpdate ("INSERT INTO " + sourceTable + " (id, lastName)" + "VALUES (1, 'Priya')" );
109
108
statement .executeUpdate ("INSERT INTO " + sourceTable + " (id, lastName)" + "VALUES (2, 'Shubhangi')" );
110
109
statement .executeUpdate ("INSERT INTO " + sourceTable + " (id, lastName)" + "VALUES (3, 'Shorya')" );
111
-
112
-
113
110
}
114
111
}
115
112
@@ -128,8 +125,6 @@ public static void createSourceDatatypesTable(String sourceTable) throws SQLExce
128
125
String datatypesColumns = PluginPropertyUtils .pluginProp ("datatypesColumns" );
129
126
String createSourceTableQuery = "CREATE TABLE " + sourceTable + " " + datatypesColumns ;
130
127
statement .executeUpdate (createSourceTableQuery );
131
- System .out .println (createSourceTableQuery );
132
-
133
128
// Insert dummy data.
134
129
String datatypesValues = PluginPropertyUtils .pluginProp ("datatypesValue1" );
135
130
String datatypesColumnsList = PluginPropertyUtils .pluginProp ("datatypesColumnsList" );
@@ -142,7 +137,6 @@ public static void createTargetDatatypesTable(String targetTable) throws SQLExce
142
137
String datatypesColumns = PluginPropertyUtils .pluginProp ("datatypesColumns" );
143
138
String createTargetTableQuery = "CREATE TABLE " + targetTable + " " + datatypesColumns ;
144
139
statement .executeUpdate (createTargetTableQuery );
145
- System .out .println (createTargetTableQuery );
146
140
}
147
141
}
148
142
@@ -151,11 +145,9 @@ public static void createTargetCloudMysqlTable(String targetTable) throws SQLExc
151
145
String datatypesColumns = PluginPropertyUtils .pluginProp ("CloudMySqlDatatypesColumns" );
152
146
String createTargetTableQuery = "CREATE TABLE " + targetTable + " " + datatypesColumns ;
153
147
statement .executeUpdate (createTargetTableQuery );
154
- System .out .println (createTargetTableQuery );
155
148
}
156
149
}
157
150
158
-
159
151
public static void dropTables (String [] tables ) throws SQLException , ClassNotFoundException {
160
152
try (Connection connect = getCloudSqlConnection (); Statement statement = connect .createStatement ()) {
161
153
for (String table : tables ) {
0 commit comments