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.88k stars 1.21k forks source link

fix. date validator will reject 00 in day part. #5907

Open UndefinedSy opened 4 months ago

UndefinedSy commented 4 months ago

the validateDate impl only checks the overflow of day part, which allows input like DATE("2024-07-00"). this will lead to error in reading process.

What type of PR is this?

What problem(s) does this PR solve?

Issue(s) number:

5906

Description:

the `validateDate` impl only checks the overflow of day part,
which allows input like DATE("2024-07-00"). this will lead to
error in the reading process.

How do you solve it?

add check in `validateDate`

Special notes for your reviewer, ex. impact of this fix, design document, etc:

Checklist:

Tests:

Affects:

Release notes:

Please confirm whether to be reflected in release notes and how to describe:

ex. Fixed the bug .....

CLAassistant commented 4 months ago

CLA assistant check
All committers have signed the CLA.