Skip to content

Allow attribute transformations in SELECT clause#23

Closed
khageshpatel wants to merge 2 commits into
kashav:masterfrom
khageshpatel:query-improvement
Closed

Allow attribute transformations in SELECT clause#23
khageshpatel wants to merge 2 commits into
kashav:masterfrom
khageshpatel:query-improvement

Conversation

@khageshpatel

Copy link
Copy Markdown
Contributor

Implements transformation on attributes. Currently only implements format(size,'kb'/'mb'/'gb'), upper, fullpath but other functions can easily be added. Example query:

fsql "select format(size,'kb'), upper(fullpath(name)) from ."

@khageshpatel khageshpatel mentioned this pull request May 24, 2017
@kashav

kashav commented May 24, 2017

Copy link
Copy Markdown
Owner

For #17.

@kashav kashav changed the title Transformations on attribute Allow attribute transformations in SELECT clause May 24, 2017
@kashav

kashav commented May 24, 2017

Copy link
Copy Markdown
Owner

I've tested this and it works pretty well; some minor problems (like mode being empty), but no worries, will add a full review in the next day or so.

I'm going to play around with the code and see if I can add support for WHERE attributes as well as clean-up the logic a little bit.

@kashav

kashav commented May 24, 2017

Copy link
Copy Markdown
Owner

An update on this:

I thought it'd be a better idea to build this against the new parser structure (introduced in feature/subquery), so I've made some changes and pushed those to feature/attribute-modifiers.

I plan to work on this feature in that branch. Feel free to submit more work to that branch, should you have anything to add!

@khageshpatel

Copy link
Copy Markdown
Contributor Author

@kshvmdn Thanks

@kashav

kashav commented Jun 4, 2017

Copy link
Copy Markdown
Owner

Merged in 09ea293, thanks @khageshpatel!

@kashav kashav closed this Jun 4, 2017
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.

2 participants