-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Feedback to improve tql package #13690
Comments
See #10349 for some Enums decisions. The current implementation allows the grammar to convert EnumSymbols to int64 during startup instead of during the hot path. Not saying the current implementation is the only way to achieve that, but I think it important that we handle Enums during parsing instead of during runtime. Also important that the Context is the source of truth for Enums and not the grammar. |
I plan to do something like this for #13545. Waiting on #13544 before moving forward with that refactor. |
We don't have a use case for this today but I'm curious if you've got one in mind. |
Things can be retrieved from the context (maybe?)? |
We could do this if we stopped having a TransformContext per signal and had one struct with all the functions ( I like the concept that the TQL is as generic as possible, though, so I'd like to keep it in pkg. |
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
This issue has been closed as inactive because it has been stale for 120 days with no activity. |
ctx context.Contex
to all these funcs? Maybe part of the TransformContext?TransformContext
interface into a struct to avoid unnecessary allocations. I think right now we have an allocation for each Span/LogRecord/DataPoint.tql.Literal
can be private based on the current usages. Look into all the types and avoid exposing public any unnecessary type.Query
. Just make it a struct withfunc (q *Query) Evaluate(ctx TransformContext) error
. This will allow us to move all types form parser.go as private (if possible) or in a internal package.The text was updated successfully, but these errors were encountered: