Skip to content

Added function getMacro#7240

Merged
alexey-milovidov merged 4 commits intomasterfrom
function-get-macro
Oct 9, 2019
Merged

Added function getMacro#7240
alexey-milovidov merged 4 commits intomasterfrom
function-get-macro

Conversation

@alexey-milovidov
Copy link
Copy Markdown
Member

For changelog. Remove if this is non-significant change.

Category (leave one):

  • New Feature

Short description (up to few sentences):
Added miscellaneous function getMacro(name) that returns String with the value of corresponding <macros> from configuration file on current server where the function is executed. This function is ordered by Yandex Banner System for filtering duplicate data on distributed queries during cluster resharding. For example, it may be used as a sophisticated replacement for the function 'hostName' if servers have complicated hostnames but you still need to distinguish them by some convenient names. This fixes #7239.

@alexey-milovidov alexey-milovidov added the pr-improvement Pull request with some product improvements label Oct 9, 2019
@alexey-milovidov
Copy link
Copy Markdown
Member Author

Need to update Docker image for tests.

@alexey-milovidov alexey-milovidov merged commit 01e08a2 into master Oct 9, 2019
@BayoNet
Copy link
Copy Markdown
Contributor

BayoNet commented Oct 24, 2019

Do we need to document this?

@alexey-milovidov
Copy link
Copy Markdown
Member Author

Yes.

@BayoNet BayoNet mentioned this pull request May 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-improvement Pull request with some product improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add miscellaneous function getMacro

2 participants