BigQueryw, s¼~wJavaScriptwUDF²ÿw, {þSQL¿¸ú{¹öç|sûy sx|w}~w. CREATE FUNCTION mydataset.AddFourAndDivide(x INT64, y INT64) RETURNS FLOAT64 AS ( (x + 4) / y ); SELECT val, AddFourAndDivide(val, 2) as rusult FROM UNNEST([2,3,5,8]) AS val; µó÷û³üù: Google Cloud~}_ù½õñóø¸º
TEMP FUNCTION myFunc(a FLOAT64, b STRING) RETURNS STRING LANGUAGE js OPTIONS ( library=['gs://my-bucket/path/to/lib1.js', 'gs://my-bucket/path/to/lib2.js']) AS r""" // Assumes 'doInterestingStuff' is defined in one of the library files. return doInterestingStuff(a, b); """; µó÷û³üù: Google Cloud~}_ù½õñóø¸º