title: How do i use square root function in UDF in bigquery
body: <p>why JS sqrt() function is not working?</p>
  
  <pre><code>CREATE TEMPORARY FUNCTION sqt(x int64)
  RETURNS int64
  LANGUAGE js AS """
    return sqrt(x);
  """;
  
  with table1 as(
  select 25 as x union all 
  select 100 as x union all 
  select 625 as x 
  )
  
  select x,sqt(x)square_root from table1
  </code></pre>
  
  <p>Error: ReferenceError: sqrt is not defined at sqt(INT64) line 2, columns 2-3</p>