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

processor_sql: new SQL processor #8580

Closed
wants to merge 12 commits into from
Closed

processor_sql: new SQL processor #8580

wants to merge 12 commits into from

Conversation

edsiper
Copy link
Member

@edsiper edsiper commented Mar 15, 2024

The following processor is based in the current stream SQL processor but now it works directly from the data ingestion point. It supports basic SELECT statements, alias with AS and conditionals with WHERE with different logical operations and expressions for conditionals.

Usage example:

pipeline:
  inputs:
    - name: dummy
      dummy: '{"key1": "123.4", "test": "1", "key2": "true", "key3": "delete me", "message": null, "http.url": "https://www.google.com/search?q=example"}'

      processors:
        logs:
          - name: sql
            query: "SELECT key1 AS key, key2 FROM STREAM WHERE message IS NULL;"

  outputs:
    - name : stdout
      match: '*'

note: further updates on this processor will extend to functions support.


Fluent Bit is licensed under Apache 2.0, by submitting this pull request I understand that this code will be released under the terms of that license.

edsiper added 4 commits March 12, 2024 10:42
The following processor is based in the current stream SQL processor but now it works
directly from the data ingestion point. It supports basic SELECT statements, alias with AS
and conditionals with WHERE with different logical operations.

Usage example:

pipeline:
  inputs:
    - name: dummy
      dummy: '{"key1": "123.4", "test": "1", "key2": "true", "key3": "delete me", "message": null, "http.url": "https://www.google.com/search?q=example"}'

      processors:
        logs:
          - name: sql
            query: "SELECT key1 AS key, key2 FROM STREAM WHERE message IS NULL;"

  outputs:
    - name : stdout
      match: '*'

note: further updates on this processor will extend to functions support.

Signed-off-by: Eduardo Silva <[email protected]>
@edsiper
Copy link
Member Author

edsiper commented Mar 15, 2024

CI issues are not associated with the code

@edsiper
Copy link
Member Author

edsiper commented Mar 16, 2024

Due to conflict issues, the PR and commits has been rebased manually. This PR is not longer needed.

@edsiper edsiper closed this Mar 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants