Skip to content

decrease earliest epoch value of query xml by 3 hours query XML - #415

Open
elliVM wants to merge 11 commits into
teragrep:mainfrom
elliVM:timestamp-epoch-minus-three-hours
Open

decrease earliest epoch value of query xml by 3 hours query XML#415
elliVM wants to merge 11 commits into
teragrep:mainfrom
elliVM:timestamp-epoch-minus-three-hours

Conversation

@elliVM

@elliVM elliVM commented Nov 14, 2024

Copy link
Copy Markdown
Contributor

Workaround to decrease earliest epoch value given to query XML by 3 hours to work with pth_06 that uses helsinki timezone.

@elliVM

elliVM commented Nov 14, 2024

Copy link
Copy Markdown
Contributor Author

For issues #83 and #401

@kortemik

Copy link
Copy Markdown
Member

please rebase

@elliVM
elliVM force-pushed the timestamp-epoch-minus-three-hours branch from 1551c09 to bfeceed Compare November 15, 2024 09:39
@elliVM

elliVM commented Nov 15, 2024

Copy link
Copy Markdown
Contributor Author

Rebased

@eemhu

eemhu commented Nov 15, 2024

Copy link
Copy Markdown
Contributor

I think you also need to change it for the produced XML and spark column to have an effect

Comment thread src/main/java/com/teragrep/pth10/ast/commands/logicalstatement/TimeStatement.java Outdated
@elliVM
elliVM requested a review from 51-code November 15, 2024 11:33
@elliVM
elliVM marked this pull request as draft November 15, 2024 11:34
@elliVM
elliVM marked this pull request as ready for review November 18, 2024 08:06
@elliVM
elliVM requested a review from eemhu November 18, 2024 08:06
Comment thread src/main/java/com/teragrep/pth10/ast/time/DecreasedEpochValue.java Outdated
@elliVM
elliVM requested a review from 51-code November 18, 2024 13:06

@51-code 51-code left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@eemhu eemhu left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but should EqualsVerifier be added to pth-10 as well for hashCode tests?

@kortemik

Copy link
Copy Markdown
Member

LGTM, but should EqualsVerifier be added to pth-10 as well for hashCode tests?

yes, please add @elliVM

Comment thread src/main/java/com/teragrep/pth10/ast/time/DecreasedEpochValue.java Outdated
Comment thread src/main/java/com/teragrep/pth10/ast/time/DecreasedEpochValue.java Outdated
Comment thread src/main/java/com/teragrep/pth10/ast/time/DecreasedEpochValue.java Outdated
@elliVM

elliVM commented Nov 20, 2024

Copy link
Copy Markdown
Contributor Author

Added EqualsVerifier library and contract test.

@elliVM
elliVM requested a review from kortemik November 20, 2024 10:48
@kortemik
kortemik requested review from 51-code and eemhu November 20, 2024 10:55
eemhu
eemhu previously approved these changes Nov 22, 2024

@eemhu eemhu left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@51-code 51-code left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@elliVM
elliVM force-pushed the timestamp-epoch-minus-three-hours branch from 94ee229 to 351832d Compare January 21, 2025 12:40
@elliVM

elliVM commented Jan 21, 2025

Copy link
Copy Markdown
Contributor Author

Rebased and duplicate dependency removed

);
final ElementNode returnValue;
if (timeQualifier.isStartTime()) {
final long decreaseValue = 3 * 60 * 60 * 1000; // decrease 3 hours from earliest

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please make this configurable:

dpl.pth_10.logicalstatement.TimeStatement.xmlDecreaseStartTime=true

check that all paths parts to the key are defined as this is an optional key i.e.
hasKey(dpl.pth_10.logicalstatement) && hasKey(dpl.pth_10.logicalstatement.TimeStatement) && hasKey(dpl.pth_10.logicalstatement.TimeStatement.xmlDecreaseStartTime)

@elliVM
elliVM force-pushed the timestamp-epoch-minus-three-hours branch from ccc94ba to 2319474 Compare May 19, 2025 06:53
@elliVM

elliVM commented May 19, 2025

Copy link
Copy Markdown
Contributor Author

rebased and update code, further changes required after #572

@elliVM
elliVM force-pushed the timestamp-epoch-minus-three-hours branch from d509b51 to 5037b98 Compare June 12, 2025 05:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants