vesoft-inc / nebula

A distributed, fast open-source graph database featuring horizontal scalability and high availability
https://nebula-graph.io
Apache License 2.0
10.83k stars 1.2k forks source link

Date validation does not check 00 in day part. #5906

Open UndefinedSy opened 4 months ago

UndefinedSy commented 4 months ago

Please check the FAQ documentation before raising an issue

Describe the bug (required) the validation in date parser only checks the overflow of day.
input like DATE("2024-07-00") will not be rejected in writing, and will finally lead to a problem in reading.

Your Environments (required)

How To Reproduce(required)

Steps to reproduce the behavior:

  1. write a date type data like DATE("2024-07-00")

Expected behavior this invalid date should be rejected in the parser.

Additional context