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

Refactor index creation and fix unncessary prefix #4995

Merged
merged 2 commits into from
Nov 28, 2023

Conversation

incrypto32
Copy link
Contributor

Closes #4982

@incrypto32 incrypto32 force-pushed the krishna/graphman-index-prefix-fix branch 3 times, most recently from 4d74385 to 8665a27 Compare November 18, 2023 18:06
@incrypto32 incrypto32 force-pushed the krishna/graphman-index-prefix-fix branch from 8665a27 to 59f2f19 Compare November 18, 2023 18:08
pub fn calculate_index_method_and_expression(
immutable: bool,
column: &Column,
) -> (String, String) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

There's an enum for index methods here - it would be better to use that. I wonder if that should return the whole CreateIndex from that file instead of the second string, but that might become a bit too unwieldy. Maybe some or all of this logic should go into a new constructor for CreateIndex

Copy link
Collaborator

Choose a reason for hiding this comment

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

Actually, I think what I said above would be good for another refactor, but what you have here is ok for now.

@incrypto32 incrypto32 merged commit 25c720a into master Nov 28, 2023
7 checks passed
@incrypto32 incrypto32 deleted the krishna/graphman-index-prefix-fix branch November 28, 2023 08:20
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.

[Bug] graphman index create indexes prefixes when it shouldn't
2 participants