Skip to content
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

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

Open
UndefinedSy opened this issue Jul 5, 2024 · 0 comments
Open

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

UndefinedSy opened this issue Jul 5, 2024 · 0 comments
Assignees
Labels
affects/none PR/issue: this bug affects none version. severity/none Severity of bug type/bug Type: something is unexpected

Comments

@UndefinedSy
Copy link

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)

  • OS: uname -a
  • Compiler: g++ --version or clang++ --version
  • CPU: lscpu
  • Commit id (e.g. fee249b3)

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

@UndefinedSy UndefinedSy added the type/bug Type: something is unexpected label Jul 5, 2024
@github-actions github-actions bot added affects/none PR/issue: this bug affects none version. severity/none Severity of bug labels Jul 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects/none PR/issue: this bug affects none version. severity/none Severity of bug type/bug Type: something is unexpected
Projects
None yet
Development

No branches or pull requests

1 participant