You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Translating it to PyVespa requires turning it into a single statement to use the switch:
# Instead of using the list[str] it splits it into a single indexing=[
"""input data_inicio | switch { case "None": input ano_inicio . "-01-01T00:00:00.00Z" | to_epoch_second | attribute | summary; default: input data_inicio . "T00:00:00.00Z" | to_epoch_second | attribute | summary;}"""# noqa: E501
],
Currently support for the indexing pattern is done by transforming each element of the
list[str]
by joining them with|
This does not work well with certain indexing patterns, like
switch
, I have the following example:Translating it to PyVespa requires turning it into a single statement to use the
switch
:Which results in (which works nicely):
Is this the intended way or is there a better way of writing indexing patterns that use
switch
orselect_input
?The text was updated successfully, but these errors were encountered: