-
Notifications
You must be signed in to change notification settings - Fork 9
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
I want to extend the conditional filter date type as shown in the above example. What interface or method do I need to implement? #10
Comments
I believe there are two questions implied here: what is the best way to specify a date (or date/time) constant and how to convert json date to comparable value (e.g. to give jsonslice a hint on how to parse a "create_time" field). The first problem can be solved either the way you mentioned (using some kind of conversion function) or by introducing a strict format for datetime constants, like "YYYY-MM-DD HH:NN:SS TZ". |
You're right, it's really worth thinking about, for data the user knows the format of the data for example for the "create time" field (yyyy-mm-dd) and since we've been thinking about the "create time" field for date types, we can directly describe the "create time" field, If the field type is known, the type of conditional filter parameter is also known, do you feel this is ok, the specific syntax above the function is a better way of grammar expression, a better way of grammar expression, not yet thought of. |
My English is not very good, please forgive me if I don't express myself well |
I would like to try to implement this first, please ask which interface I should implement |
In my opinion the optimal way would be a function call with two parameters:
The hour, minute and second char can be either lowercase or uppercase. The difference is only in hour char,
So in jsonpath it must look like this: |
I want to extend the conditional filter date type as shown in the above example. What interface or method do I need to implement?
The text was updated successfully, but these errors were encountered: