Skip to content
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

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from
Open

E2E sqlengine ITN #53

wants to merge 4 commits into from

Conversation

AnkitCLI
Copy link
Collaborator

@AnkitCLI AnkitCLI commented Apr 12, 2024

E2e tests covered as ITN for SqlEngine.

@AnkitCLI AnkitCLI changed the title E2e sqlengine ITN E2E sqlengine ITN Apr 12, 2024
BigQueryClient.getSoleQueryResult("create table `" + datasetName + "." + bqSourceTable2 + "` " +
"(customerid INT64, item STRING, price FLOAT64 )");
try {
io.cdap.e2e.utils.BigQueryClient.getSoleQueryResult("INSERT INTO `" + datasetName + "." + bqSourceTable2 + "` " +
Copy link
Collaborator

Choose a reason for hiding this comment

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

Fix the Import

Copy link
Collaborator 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 enterAggregates(String jsonAggreegatesFields) {
Map<String, String> fieldsMapping =
Copy link
Collaborator

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.

Copy link
Collaborator Author

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])));
Copy link
Collaborator

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 {
Copy link
Collaborator

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 ?

Copy link
Collaborator Author

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;
Copy link
Collaborator

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 ?

Copy link
Collaborator Author

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,
Copy link
Collaborator

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.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

added.

@AnkitCLI AnkitCLI force-pushed the e2e-sqlengine-ITN branch 7 times, most recently from f2087f7 to 1d443bd Compare April 19, 2024 06:03
@AnkitCLI AnkitCLI force-pushed the e2e-sqlengine-ITN branch from 1d443bd to 1bb71a8 Compare April 23, 2024 04:48
@AnkitCLI AnkitCLI force-pushed the e2e-sqlengine-ITN branch from 52aefc9 to 4c9217e Compare April 29, 2024 06:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants