google/zetasql

Optional lambda parameter

pgrivachev opened this issue · 0 comments

Is it possible to create function signature with optional lambda parameter like CONTAINS_SUBSTR has?

CONTAINS_SUBSTR(expression, search_value_literal[, json_scope=>json_scope_value])

json_scope_value:
  { 'JSON_VALUES' | 'JSON_KEYS' | 'JSON_KEYS_AND_VALUES' }

I found that for some reason such arguments should be REQUIRED (also comment). Is there any workaround?