Replies: 3 comments 7 replies
-
I'd prefer option 2. It seems like we can strictly define things like That said, the spec should avoid external context where possible. The first example of a timestamp without time zone that is implicitly converted to timestamp with time zone seems like something we don't want to allow. I don't think the plan is really resolved at that point. The producer could replace it with |
Beta Was this translation helpful? Give feedback.
-
How about
3 could potentially be done in combination with 2 where 2 covers the most common scenarios and 3 covers everything else. Or maybe 3 is just my phrasing of what you've called 2 (2 with custom context). |
Beta Was this translation helpful? Give feedback.
-
Is all context supplied by the producer? And, if not, what happens when a query is distributed across multiple systems? For example, if a producer does not supply a "session time zone" (in this case postgres would fall back to a server configuration variable) and then the query is distributed across two query engines, is it possible the context ends up with two different values? |
Beta Was this translation helpful? Give feedback.
-
There are several operations in systems that use external context to inform things. A couple of simple examples:
It seems like we have a couple of options on how to handle this:
While I like the simplicity of the first option, I think we probably need to do the second approach. A couple of reasons:
So I propose that we create a structured specification for context and then make that available as internal arguments for functions. As part of this, I propose that the function signature that need these must declare which they need.
Thoughts?
Beta Was this translation helpful? Give feedback.
All reactions