Skip to content

[BUG] Fields command is not being obeyed while table alias is used #1058

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

Closed
LantaoJin opened this issue Feb 18, 2025 · 0 comments · Fixed by #1059
Closed

[BUG] Fields command is not being obeyed while table alias is used #1058

LantaoJin opened this issue Feb 18, 2025 · 0 comments · Fixed by #1059
Assignees
Labels
bug Something isn't working

Comments

@LantaoJin
Copy link
Member

LantaoJin commented Feb 18, 2025

What is the bug?
Input:

search source=a5
  | where a5_int_0 > 500
  | fields a5_str_0

Output:

+--------+
|a5_str_0|
+--------+
|     bba|
|     bab|
|     bbb|
|     cab|
|     bcb|
|     abc|
|     bbb|
|     cbb|
|     cbb|
       ...
+--------+

Input:

search source=a5 as l
  | where l.a5_int_0 > 500
  | fields l.a5_str_0

Incorrect Output

+--------+--------+
|a5_int_0|a5_str_0|
+--------+--------+
|    1350|     bba|
|    3050|     bab|
|    1550|     bbb|
|    1300|     cab|
|    1500|     bcb|
|    4950|     abc|
|    3800|     bbb|
|    2200|     cbb|
|    4500|     cbb|
|     850|     baa|
        ....
+--------+--------+
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

Successfully merging a pull request may close this issue.

1 participant