alternatives to CEL #322
Replies: 5 comments 3 replies
-
Summarizing a few points from the thread issue above, I see a few issues that we should consider: 1. the url-escaped CEL queries are uglye.g.
2: CEL is a powerful language, and it's difficult to support the full syntaxWe have worked on things like cel2db, but it's tailor made to convert cel expressions to SQL queries, and it's valid that not all databases use SQL dialects, and may not be willing to support the full set of expressions cel provides. Not to mention getting into really hairy territory like custom functions. Feel free to add more concerns / issues as a reply. |
Beta Was this translation helpful? Give feedback.
-
Now we're on to possible alternatives. @thegagne suggests having two variants: simple, and complex syntax: #247 (comment). As well as including documentation on a subset of CEL which could be supported. |
Beta Was this translation helpful? Give feedback.
-
Thread on "cel expressions are ugly in a URL". Honestly, I don't think any mildly functional syntax for a filter in a query parameter will look great. The only unreserved characters in a URL are |
Beta Was this translation helpful? Give feedback.
-
thread on "basic filtering" For these examples:
I definitely agree that they are very easy to read, and probably user friendly too. This particular example is for a list API, so the usage of query parameters is quite limited, as well. However, that said, I do see an issue with the fact that there is going to be a need to reserve some values (e.g. |
Beta Was this translation helpful? Give feedback.
-
In the AEP sync, @rofrankel @thegagne and I had a discussion, and we kind of floated toward the following:
in short: the general direction is toward keeping CEL, but move toward better ways to express the operations supported. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
In #247, there is feedback from @thegagne and @ar3s3ru on the fact that CEL may not be a feasible option for filtering syntax. Starting a thread to discuss where CEL is the right option for filtering syntax.
Beta Was this translation helpful? Give feedback.
All reactions