-
Notifications
You must be signed in to change notification settings - Fork 6
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
decrease earliest epoch value of query xml by 3 hours query XML #415
base: main
Are you sure you want to change the base?
Conversation
please rebase |
1551c09
to
bfeceed
Compare
Rebased |
I think you also need to change it for the produced XML and spark column to have an effect |
|
||
if (tq.isStartTime()) { | ||
startTime = tq.epoch(); | ||
final TimeQualifierInterface timeQualifierInterface = new TimeQualifier( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would rename TimeQualiferInterface to TimeQualifier, and the implementing class to TimeQualifierImpl
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
renamed
src/main/java/com/teragrep/pth10/ast/time/DecreasedEpochValue.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
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?
yes, please add @elliVM |
import java.util.Objects; | ||
|
||
/** Decreases the amount from qualifier epoch value */ | ||
public final class DecreasedEpochValue implements TimeQualifier { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please rename to DecreasedEpochXmlElementValue
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
renamed
|
||
import java.util.Objects; | ||
|
||
/** Decreases the amount from qualifier epoch value */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please add comment that this is a temporary workaround for the pth_06 database schema
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added explanatory comment in javadoc
|
||
@Override | ||
public long epoch() { | ||
return origin.epoch() - decreaseAmount; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
only XML is to be decremented, the datasource code extracts proper timestamps from the data itself, only the search uses local timestamps incorrectly and that's controlled by the xml value.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change to only change value inside XML element, otherwise uses origins methods
…dd EqualsVerifier and contract test
Added EqualsVerifier library and contract test. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Workaround to decrease earliest epoch value given to query XML by 3 hours to work with pth_06 that uses helsinki timezone.