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

Support single number datetime/date/time parsing #3456

Closed
Shylock-Hg opened this issue Dec 13, 2021 · 0 comments · Fixed by #3797
Closed

Support single number datetime/date/time parsing #3456

Shylock-Hg opened this issue Dec 13, 2021 · 0 comments · Fixed by #3797
Assignees
Labels
type/enhancement Type: make the code neat or more efficient

Comments

@Shylock-Hg
Copy link
Contributor

Shylock-Hg commented Dec 13, 2021

Introduction

In function calling as bellow:

date('2019')
datetime('2020')

In current, we only parse the string '2019' and '2020', so parser can't determine the deduce rule and lead to confliction for losing the information. So we could insert the function call information back to the raw string to fix it.
e.g. date('2019') we parse '2019' now, could change to parse '__date2019'.

Contents

Related work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/enhancement Type: make the code neat or more efficient
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants