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

Persistence Component: expose input files bytes size for Snowflake BulkLoad #3201

Closed
wants to merge 3 commits into from

Conversation

rengam32
Copy link
Contributor

What type of PR is this?
Improvement

What does this PR do / why is it needed ?
Added the support to return input files bytes metrics for Snowflake during bulk load in IngestorResult

Which issue(s) this PR fixes:
Other notes for reviewers:
Change proposed by @prasar-ashutosh

Does this PR introduce a user-facing change?
Only impacts users of legend-engine-xts-persistence-component

@rengam32 rengam32 requested a review from a team as a code owner October 23, 2024 15:28
Copy link

github-actions bot commented Oct 23, 2024

Test Results

  1 054 files  +2    1 054 suites  +2   1h 43m 9s ⏱️ + 1m 46s
12 724 tests +5  12 615 ✔️ +5  109 💤 ±0  0 ±0 
18 519 runs  +5  18 410 ✔️ +5  109 💤 ±0  0 ±0 

Results for commit 4cad2b2. ± Comparison against base commit 5830618.

♻️ This comment has been updated with latest results.

@@ -22,7 +22,9 @@ public enum StatisticName
ROWS_UPDATED("rowsUpdated"),
ROWS_DELETED("rowsDeleted"),
FILES_LOADED("filesLoaded"),
ROWS_WITH_ERRORS("rowsWithErrors");
ROWS_WITH_ERRORS("rowsWithErrors"),

Copy link
Contributor

Choose a reason for hiding this comment

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

Extra space


public TabularData convertResultSetToTabularData(String sql, int rows)
{
try
Copy link
Contributor

Choose a reason for hiding this comment

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

We do not need the outside try and let it throw the exception that JDBCHelper can catch


public TabularData convertResultSetToTabularData(String sql)
{
try
Copy link
Contributor

Choose a reason for hiding this comment

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

We do not need the outside try and let it throw the exception that JDBCHelper can catch

@@ -0,0 +1,50 @@
// Copyright 2023 Goldman Sachs
Copy link
Contributor

Choose a reason for hiding this comment

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

Typo

Comment on lines +76 to +79
import org.finos.legend.engine.persistence.components.relational.snowflake.sql.visitor.CopyVisitor;
import org.finos.legend.engine.persistence.components.relational.snowflake.sql.visitor.DatasetAdditionalPropertiesVisitor;
import org.finos.legend.engine.persistence.components.relational.snowflake.sql.visitor.DigestUdfVisitor;
import org.finos.legend.engine.persistence.components.relational.snowflake.sql.visitor.FieldVisitor;
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks redundant - should have already been imported

@finos-admin
Copy link
Member

This PR is stale because it has been open for 30 days with no activity. Please remove stale label or add any comment to keep this open. Otherwise this will be closed in 5 days.

@finos-admin
Copy link
Member

This PR was closed because it has been inactive for 35 days. Please re-open if this PR is still relevant.

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