teragrep / pth_10

Data Processing Language (DPL) translator for Apache Spark
GNU Affero General Public License v3.0
0 stars 2 forks source link

invalid timestamp does not throw #253

Closed kortemik closed 3 months ago

kortemik commented 4 months ago

Describe the bug

latest="31/01/2012:23:59:59" 

month 31 <- this is not a month in my calendar! day 01 year 2012 hour 23 minute 59 second 59

does not throw, but let's the query execute

Expected behavior should throw an exception stating it is not a proper timestamp

How to reproduce use such a faulty one

Screenshots

Software version pth_10 version: 5.1.0

Desktop (please complete the following information if relevant):

Additional context

eemhu commented 3 months ago

Internal PR submitted. Setting SimpleDateFormat to be non-lenient seems to fix the issue.