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

rename does not work #425

Closed
kortemik opened this issue Nov 20, 2024 · 2 comments
Closed

rename does not work #425

kortemik opened this issue Nov 20, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@kortemik
Copy link
Member

Describe the bug

| makeresults count=1 | eval 'estimates(a_b)'=1 | rename 'estimates(a_b)' AS e_a_b | stats max(e_a_b)

results into

e_a_b does not exist. Available: _time, 'estimates(a_b)'

Expected behavior
field would be renamed and original not present

How to reproduce
run query

Screenshots

Software version
pth_07 8.2.0

Desktop (please complete the following information if relevant):

  • OS:
  • Browser:
  • Version:

Additional context

@kortemik kortemik added the bug Something isn't working label Nov 20, 2024
@kortemik
Copy link
Member Author

please investigate underlying cause, this should throw an exception if the transformation is not supported

@eemhu
Copy link
Contributor

eemhu commented Nov 22, 2024

Based on testing, seems like

| makeresults count=1 | eval "estimates(a_b)"=1 | rename '"estimates(a_b)"' AS e_a_b 

works. I think the issue is caused by eval not stripping the quotes given for the field, but rename does do it, resulting in the error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants