You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@tsfile.apache.org by "FearfulTomcat27 (via GitHub)" <gi...@apache.org> on 2024/10/09 12:01:44 UTC
[PR] fix: Fix the bug in parse date to int when year out of range [tsfile]
FearfulTomcat27 opened a new pull request, #260:
URL: https://github.com/apache/tsfile/pull/260
This pull request includes updates to the `DateUtils` class to enhance date validation logic. The changes ensure that the year in the date expression falls within a valid range.
Validation improvements:
* [`java/tsfile/src/main/java/org/apache/tsfile/utils/DateUtils.java`](diffhunk://#diff-30d849eff6235c344df0d6b2fd3db364b502477d2de5b225d64102edb12f0dfaL51-R51): Updated the `parseDateExpressionToInt(String dateExpression)` method to throw an exception if the year is greater than 9999.
* [`java/tsfile/src/main/java/org/apache/tsfile/utils/DateUtils.java`](diffhunk://#diff-30d849eff6235c344df0d6b2fd3db364b502477d2de5b225d64102edb12f0dfaL61-R61): Updated the `parseDateExpressionToInt(LocalDate localDate)` method to throw an exception if the year is greater than 9999.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@tsfile.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] fix: Fix the bug in parse date to int when year out of range [tsfile]
Posted by "JackieTien97 (via GitHub)" <gi...@apache.org>.
JackieTien97 merged PR #260:
URL: https://github.com/apache/tsfile/pull/260
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@tsfile.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org