-
Notifications
You must be signed in to change notification settings - Fork 125
internal/function: use custom fixed struct as LOC result #931
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
Conversation
docs/using-gitbase/examples.md
Outdated
@@ -81,9 +81,9 @@ GROUP BY committer_email, | |||
```sql | |||
SELECT | |||
LANGUAGE(file_path, blob_content) as lang, | |||
SUM(JSON_EXTRACT(LOC(file_path, blob_content), '$.Code')) as code, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would say to do the opposite, keep output as it was. Also, other functions have keys with first letter uppercase too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using uppercase is a bit weird in JSON, hence #930
If we do want to use uppercase, though, I can close the issue and change it back here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm concerned about backward compatibility. All queries that are using these functions will stop working with no error message...
d5a5964
to
1a89332
Compare
Struct tags are now uppercase. Docs added with the shape of LOC. |
Signed-off-by: Miguel Molina <[email protected]>
1a89332
to
499c7d5
Compare
Done |
Fixes #927
make upgrade
command if applicable.