Skip to content

Remove useless variable outputDeviceToQueriedDevicesMap in Analysis#11526

Closed
Beyyes wants to merge 1 commit intomasterfrom
beyyes/remove_deviceToOutputDevices
Closed

Remove useless variable outputDeviceToQueriedDevicesMap in Analysis#11526
Beyyes wants to merge 1 commit intomasterfrom
beyyes/remove_deviceToOutputDevices

Conversation

@Beyyes
Copy link
Copy Markdown
Member

@Beyyes Beyyes commented Nov 13, 2023

Description

@Beyyes Beyyes changed the title Remove useless variable in Analysis Remove useless variable outputDeviceToQueriedDevicesMap in Analysis Nov 13, 2023
@sonarqubecloud
Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@Beyyes Beyyes marked this pull request as draft November 13, 2023 13:03
String outputDevice = node.getDevices().get(i);
PlanNode child = node.getChildren().get(i);
List<TRegionReplicaSet> regionReplicaSets = new ArrayList<>();
for (String queriedDevice : outputDeviceToQueriedDevicesMap.get(outputDevice)) {
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

size of outputDeviceToQueriedDevicesMap.get(outputDevice) can only be 0 or 1;

Can optimize this process, if no LogicalView, does'n need these step.

Analysis analysis, QueryStatement queryStatement, ISchemaTree schemaTree) {
Set<String> deviceSet = new HashSet<>();
if (queryStatement.isAlignByDevice()) {
deviceSet =
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

optimize it, it no LogicalView, just use analysis.getDeviceList().

@Beyyes Beyyes closed this Feb 1, 2024
@Beyyes Beyyes deleted the beyyes/remove_deviceToOutputDevices branch February 1, 2024 02:31
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.

1 participant