Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Benjamin Kietzman <[email protected]>
  • Loading branch information
westonpace and bkietz authored Oct 19, 2022
1 parent d6d4d08 commit cad9879
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion site/docs/expressions/scalar_functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ There are three main types of arguments: value arguments, type arguments, and en

In addition to arguments each call may specify zero or more options. These are similar to a required enumeration but more focused on supporting alternative behaviors. Options can be left unspecified and the consumer is free to choose which implementation to use. An example use case might be `OVERFLOW_BEHAVIOR:[OVERFLOW, SATURATE, ERROR]` If unspecified, an engine is free to use any of the three choices or even some alternative behavior (e.g. setting the value to null on overflow). If specified, the engine would be expected to behave as specified or fail. Note, the value of an optional enumeration cannot be used in type derivation.

### Option Precedence
### Option Preference

A producer may specify multiple vlaues for an option. If the producer does so then the consumer must deliver the first behavior in the list of values that the consumer is capable of delivering. For example, considering overflow as defined above, if a producer specified `[ERROR, SATURATE]` then the consumer must deliver `ERROR` if it is capable of doing so. If it is not then it may deliver `SATURATE`. If the consumer cannot deliver either behavior then it is an error and the consumer must reject the plan.

Expand Down
2 changes: 1 addition & 1 deletion site/docs/extensions/generate_function_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def write_markdown(file_obj: dict, file_name: str) -> None:
for count, impl in enumerate(implementations_list):
if "args" not in impl:
continue
args_list = impl["args"] if "args" in impl else []
args_list = impl["args"]
arg_string = []
only_arg_names = []
arg_with_option_names = []
Expand Down

0 comments on commit cad9879

Please sign in to comment.