Is it possible to create user defined data types in standard SQL, which can then be referenced from within the SQL code itself?
As an example, let's say I wanted to create a function that would take two instances of STRUCT - each containing three entries of type STRING. This would require writing something like this;
CREATE TEMP FUNCTION myFunc(x STRUCT<STRING, STRING, STRING>, y STRUCT<STRING, STRING, STRING>) AS (...);
What I want to do though, is something like this (pseudo-code);
CREATE TYPE myType STRUCT<STRING, STRING, STRING>
CREATE TEMP FUNCTION myFunc(x myType, y myType) AS (...)