feat: LQL timestamp support for unix timestamps and ISO8601#3327
Merged
Ziinc merged 2 commits intoLogflare:mainfrom Apr 15, 2026
Merged
feat: LQL timestamp support for unix timestamps and ISO8601#3327Ziinc merged 2 commits intoLogflare:mainfrom
Ziinc merged 2 commits intoLogflare:mainfrom
Conversation
4810ec7 to
7355e59
Compare
6a3d953 to
2e426af
Compare
deca498 to
d68c264
Compare
d68c264 to
1150a4c
Compare
1150a4c to
ae2e2d0
Compare
Ziinc
approved these changes
Apr 15, 2026
Comment on lines
+330
to
+337
| assert Enum.map(rules, & &1.modifiers) == [ | ||
| %{explicit_timezone: true}, | ||
| %{explicit_timezone: true}, | ||
| %{explicit_timezone: true}, | ||
| %{explicit_timezone: true}, | ||
| %{explicit_timezone: true}, | ||
| %{explicit_timezone: true} | ||
| ] |
Comment on lines
+312
to
+328
| assert Enum.map(rules, & &1.value) == [ | ||
| ~N[2026-03-17 14:47:02.000], | ||
| ~N[2026-03-17 12:47:02], | ||
| ~N[2026-03-17 16:47:02], | ||
| nil, | ||
| nil, | ||
| ~N[2024-03-17 13:47:02.000] | ||
| ] | ||
|
|
||
| assert Enum.map(rules, & &1.values) == [ | ||
| nil, | ||
| nil, | ||
| nil, | ||
| [~N[2024-03-17 13:47:02], ~N[2024-03-17 13:57:02]], | ||
| [~N[2024-03-17 13:47:02.000], ~N[2024-03-17 13:57:02.000]], | ||
| nil | ||
| ] |
Contributor
There was a problem hiding this comment.
splitting up the range query substrings would be more readable
Ziinc
pushed a commit
that referenced
this pull request
Apr 15, 2026
* feat: LQL timestamp support for unix timestamps and ISO8601 * fix: don't apply local timezone correction to absolute timestamps
Ziinc
added a commit
that referenced
this pull request
Apr 15, 2026
* feat: initial implementation of bigquery iam provisioning * chore: remove stripe-mock and add in price id to seeds for paid plan testing * chore: add stripe helper * docs: add docs on additional bigquery projects * chore: version bump * chore: instance template scripts (#3369) * feat: LQL timestamp support for unix timestamps and ISO8601 (#3327) * feat: LQL timestamp support for unix timestamps and ISO8601 * fix: don't apply local timezone correction to absolute timestamps * feat: add partial broadcast for cached values (#3218) * add partial cache broadcast on misses * credo * credo again * naming * comment * comments * naming * continue * credo * wording * continue * fewer changes * add refresh * begin tests * seems to work * add key to telemetry info * add key to telemetry info * doc * fix credo warning * extract gossip functions into own module * fix mime error * continue * move epmd setup to ci * use ; instead of && * seems to work * cleanup * cleanup again * add big error if epmd is not running * cleanup * format error * improve float parsing (allow 0 and 1) * add warnings * pipe * comment on epmd * move comment * move unboxed runs to setup from setup_all * cache user * continue * cleanup * continue * more logs * wording * comment * naming * eh * notice --------- Co-authored-by: Ziinc <Ziinc@users.noreply.github.com> * chore: add telegraf --------- Co-authored-by: Adam Mokan <amokan@gmail.com> Co-authored-by: Matt Stubbs <22266+msmithstubbs@users.noreply.github.com> Co-authored-by: ruslandoga <ruslandoga+gh@icloud.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add support for LQL timestamp filters in these formats:
Unix timestamp
Use Unix timestamps as 10-digit seconds, 13-digit milliseconds, or 16-digit microseconds.
Microsecond values are truncated to milliseconds.
Unix timestamps are interpreted as UTC.
Examples:
t:>=1710683222000t:<=1710683222000000t:1710683222..1710683822t:1710683222000..1710683822000ISO8601 format
A timestamp can be written as:
This is treated as a UTC datetime.
This is treated using the supplied offset.
Examples:
t:2026-03-17..2026-03-19t:>2026-03-17T14:47:02Zt:>=2026-03-17T14:47:02.123Zt:<2026-03-17T14:47:02+02:00t:>=2026-03-17T14:47:02-02:00t:2026-03-17T14:47:02+02:00..2026-03-17T15:47:02+02:00CleanShot.2026-04-13.at.09.53.24.mp4
CleanShot.2026-04-13.at.09.58.04.mp4
Closes O11Y-1586