0

I want to reuse the same struct in multiple user defined functions. Is there any way to alias the type so I don't have to write down the definition in full each time?

I.e. something like

DECLARE TYPE mystruct = STRUCT<key STRING, value STRUCT<int_value INT64, float_value FLOAT64, ...>>;

CREATE TEMP FUNCTION foo(x mystruct) ...
CREATE TEMP FUNCTION bar(x mystruct) ...

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.