Skip to content

Instantly share code, notes, and snippets.

@campoy
Created April 12, 2018 18:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save campoy/d81298aa3c6799a8b6d6d730ff8f1a05 to your computer and use it in GitHub Desktop.
Save campoy/d81298aa3c6799a8b6d6d730ff8f1a05 to your computer and use it in GitHub Desktop.
function checkAssembly(row, emit) {
emit({ b: WebAssembly != undefined });
}
bigquery.defineFunction(
'checkAssembly',
['x'],
[{ 'name': 'b', 'type': 'boolean' }],
checkAssembly
);
SELECT b FROM checkAssembly(
SELECT 21 as x
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment