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

Implement Select filter value auto-completion for SQL mode #3277

Merged
merged 8 commits into from
Jan 24, 2024

Conversation

jnsrnhld
Copy link
Collaborator

No description provided.

@jnsrnhld jnsrnhld requested a review from awildturtok January 24, 2024 07:09
Copy link
Collaborator

@awildturtok awildturtok left a comment

Choose a reason for hiding this comment

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

Schau bitte auch, ob du SQL auch gestreamt imlpementieren kannst.

public class ClusterStorageHandler implements StorageHandler {

@Override
public List<String> lookupColumnValues(NamespaceStorage namespaceStorage, Column column) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Hmmm, das darf glaube ich keine Liste sein, die sind riesig. Kriegst du das mit Streams implementiert?

return ((StringStore) importColumn.getTypeDescription()).iterateValues();
})
storage.getStorageHandler()
.lookupColumnValues(storage, this).stream()
Copy link
Collaborator

Choose a reason for hiding this comment

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

perfekt, du handlest das hier nur als stream weiter. Dann bitte auch als Stream ausgeben. Die haben potential riesig zu sein

@@ -47,6 +48,11 @@ public class FilterAutocompleteTest extends IntegrationTest.Simple implements Pr
"b,lbl-6,ov-6"
};

@Override
public Set<StandaloneSupport.Mode> forModes() {
return Set.of(StandaloneSupport.Mode.WORKER, StandaloneSupport.Mode.SQL);
Copy link
Collaborator

Choose a reason for hiding this comment

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

niceee!

@jnsrnhld jnsrnhld requested a review from awildturtok January 24, 2024 12:58
…geHandler.java

Co-authored-by: awildturtok <1553491+awildturtok@users.noreply.github.com>
@jnsrnhld jnsrnhld enabled auto-merge (squash) January 24, 2024 14:48
@jnsrnhld jnsrnhld merged commit 867236f into develop Jan 24, 2024
6 checks passed
@delete-merged-branch delete-merged-branch bot deleted the sql/feature/sql-filter-value-autocompletion branch January 24, 2024 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants