-
Notifications
You must be signed in to change notification settings - Fork 2
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
E2E sqlengine ITN #53
base: develop
Are you sure you want to change the base?
Conversation
BigQueryClient.getSoleQueryResult("create table `" + datasetName + "." + bqSourceTable2 + "` " + | ||
"(customerid INT64, item STRING, price FLOAT64 )"); | ||
try { | ||
io.cdap.e2e.utils.BigQueryClient.getSoleQueryResult("INSERT INTO `" + datasetName + "." + bqSourceTable2 + "` " + |
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.
Fix the Import
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.
done
} | ||
|
||
public static void enterAggregates(String jsonAggreegatesFields) { | ||
Map<String, String> fieldsMapping = |
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.
Its a good practice to add a Java doc with Inline comments whenever you write a customized logic, please add the same.
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.
added
try { | ||
ElementHelper.clickOnElement(SeleniumDriver.getDriver(). | ||
findElement(CdfPluginPropertiesLocators.locateDropdownListItem | ||
(entry.getKey().split("#")[1]))); |
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.
Fix the Indentation here.
/** | ||
* GroupBy Related Locators. | ||
*/ | ||
public class GroupByLocators { |
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.
Why are we adding Group By Locators in bigquery module ?
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.
changed its module . created a separate module named groupby and added in that.
* License for the specific language governing permissions and limitations under | ||
* the License. | ||
*/ | ||
package io.cdap.plugin.bigquery.stepsdesign; |
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.
Also Validation helper usually go in utils or common folder, are we adding Validation helpers in specific modules for other plugins as well ?
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.
No, we don't add in utils. We simply add them in module folder.
|
||
private static final Logger LOG = LoggerFactory.getLogger(ValidationHelper.class); | ||
static Gson gson = new Gson(); | ||
public static boolean validateActualDataToExpectedData(String table, String fileName) throws IOException, |
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.
Same comment for these methods, add java doc and Inline comments.
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.
added.
f2087f7
to
1d443bd
Compare
1d443bd
to
1bb71a8
Compare
52aefc9
to
4c9217e
Compare
E2e tests covered as ITN for SqlEngine.