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

Fix display string concatenation for array columns #98

Merged
merged 2 commits into from
Sep 23, 2024

Conversation

iwer
Copy link
Contributor

@iwer iwer commented Sep 23, 2024

An array ["a", "b", "c"] was rendered "abc" in the results pane, now "{a, b, c}"

(May not be the most idiomatic rust)

closes #97

@achristmascarl
Copy link
Owner

@greptileai

Copy link

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

PR Summary

This PR modifies the vec_to_string function in src/database.rs to improve the display of array columns in the results pane.

  • Changed array formatting from concatenated string "abc" to "{a, b, c}" for better readability
  • Implemented curly braces and comma separators for array elements in vec_to_string function
  • Addresses issue array display may be unclear #97 regarding unclear array display in query results

1 file(s) reviewed, 2 comment(s)
Edit PR Review Bot Settings

src/database.rs Show resolved Hide resolved
src/database.rs Show resolved Hide resolved
@achristmascarl
Copy link
Owner

thx for the pr @iwer ! it looks good, the greptile feedback doesn't seem too important so i'll merge once the tests finish

@achristmascarl achristmascarl merged commit 6712de2 into achristmascarl:main Sep 23, 2024
8 checks passed
@iwer iwer deleted the fix-array-colums-display branch September 23, 2024 14:47
Copy link

Included in release v0.2.5

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.

array display may be unclear
2 participants