Skip to content

bq additional scenarios#1317

Merged
DJSagarAhire merged 1 commit intodata-integrations:developfrom
cloudsufi:tests_new_e2e_bq
Dec 4, 2023
Merged

bq additional scenarios#1317
DJSagarAhire merged 1 commit intodata-integrations:developfrom
cloudsufi:tests_new_e2e_bq

Conversation

@priyabhatnagar25
Copy link
Copy Markdown
Contributor

No description provided.

@bharatgulati bharatgulati added build Trigger unit test build and removed build Trigger unit test build labels Oct 16, 2023
@priyabhatnagar25 priyabhatnagar25 force-pushed the tests_new_e2e_bq branch 7 times, most recently from f9b5cef to 05b2a5e Compare October 25, 2023 04:40
Comment thread pom.xml Outdated
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
<!-- <goal>verify</goal>-->
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why is this commented out?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Hi Sagar , this is resolved

@Before(order = 1, value = "@BQ_UPSERT_SOURCE_TEST")
public static void createSourceBQUpsertTable() throws IOException, InterruptedException {
bqSourceTable = "E2E_SOURCE_" + UUID.randomUUID().toString().replaceAll("-", "_");
io.cdap.e2e.utils.BigQueryClient.getSoleQueryResult("create table `" + datasetName + "." + bqSourceTable + "` " +
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is there a reason we can't import the BigQueryClient class or static import the getSoleQueryResult method?

public static void createSourceBQUpsertTable() throws IOException, InterruptedException {
bqSourceTable = "E2E_SOURCE_" + UUID.randomUUID().toString().replaceAll("-", "_");
io.cdap.e2e.utils.BigQueryClient.getSoleQueryResult("create table `" + datasetName + "." + bqSourceTable + "` " +
"(ID INT64, Name STRING, " + "Price FLOAT64," +
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Please use String.format() for SQL queries rather than concatenation with +. In fact it's preferable to make this change throughout.

@bharatgulati bharatgulati added build Trigger unit test build and removed build Trigger unit test build labels Nov 30, 2023
@bharatgulati bharatgulati added build Trigger unit test build and removed build Trigger unit test build labels Dec 4, 2023
@DJSagarAhire DJSagarAhire merged commit 00d2daa into data-integrations:develop Dec 4, 2023
@psainics psainics deleted the tests_new_e2e_bq branch February 13, 2025 05:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build Trigger unit test build

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants