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

HIVE-28238: Open Hive transaction only for ACID resources #5216

Merged
merged 20 commits into from
Jun 4, 2024

Conversation

deniskuzZ
Copy link
Member

@deniskuzZ deniskuzZ commented Apr 25, 2024

What changes were proposed in this pull request?

Open ACID txn only when transactional resources are present in a query

Why are the changes needed?

Backend db calls optimization

Does this PR introduce any user-facing change?

No

Is the change a dependency upgrade?

No

How was this patch tested?

mvn test -Dtest=ITestDbTxnManager -Dtest.metastore.db=postgres

@kasakrisz
Copy link
Contributor

Is there an apache jira about this change?

@deniskuzZ deniskuzZ changed the title Open Hive ACID txn only for transactional resources HIVE-28238: Open Hive ACID txn only for transactional resources Apr 30, 2024
@deniskuzZ
Copy link
Member Author

Is there an apache jira about this change?

created https://issues.apache.org/jira/browse/HIVE-28238

@@ -147,8 +146,7 @@ private String getExpandedText(List<FieldSchema> imposedSchema, ASTNode select,
return expandedText;
}

private List<FieldSchema> getPartitionColumns(List<FieldSchema> imposedSchema, ASTNode select, TableName viewName,
List<String> partitionColumnNames) throws SemanticException {
private List<FieldSchema> getPartitionColumns(List<String> partitionColumnNames) throws SemanticException {
Copy link
Member Author

Choose a reason for hiding this comment

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

refactor: unused params

Copy link

sonarcloud bot commented Jun 3, 2024

Quality Gate Passed Quality Gate passed

Issues
26 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

@deniskuzZ deniskuzZ merged commit 1a90d27 into apache:master Jun 4, 2024
5 checks passed
@deniskuzZ deniskuzZ deleted the txn_optimize branch June 4, 2024 12:40
@deniskuzZ deniskuzZ changed the title HIVE-28238: Open Hive ACID txn only for transactional resources HIVE-28238: Open Hive transaction only for ACID resources Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants