|
@@ -0,0 +1,299 @@
|
|
|
+{
|
|
|
+ "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.",
|
|
|
+ "type" : "eval",
|
|
|
+ "name" : "atan2",
|
|
|
+ "description" : "The angle between the positive x-axis and the ray from the\norigin to the point (x , y) in the Cartesian plane, expressed in radians.",
|
|
|
+ "signatures" : [
|
|
|
+ {
|
|
|
+ "params" : [
|
|
|
+ {
|
|
|
+ "name" : "y_coordinate",
|
|
|
+ "type" : "double",
|
|
|
+ "optional" : false,
|
|
|
+ "description" : "y coordinate. If `null`, the function returns `null`."
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name" : "x_coordinate",
|
|
|
+ "type" : "double",
|
|
|
+ "optional" : false,
|
|
|
+ "description" : "x coordinate. If `null`, the function returns `null`."
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "variadic" : false,
|
|
|
+ "returnType" : "double"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "params" : [
|
|
|
+ {
|
|
|
+ "name" : "y_coordinate",
|
|
|
+ "type" : "double",
|
|
|
+ "optional" : false,
|
|
|
+ "description" : "y coordinate. If `null`, the function returns `null`."
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name" : "x_coordinate",
|
|
|
+ "type" : "integer",
|
|
|
+ "optional" : false,
|
|
|
+ "description" : "x coordinate. If `null`, the function returns `null`."
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "variadic" : false,
|
|
|
+ "returnType" : "double"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "params" : [
|
|
|
+ {
|
|
|
+ "name" : "y_coordinate",
|
|
|
+ "type" : "double",
|
|
|
+ "optional" : false,
|
|
|
+ "description" : "y coordinate. If `null`, the function returns `null`."
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name" : "x_coordinate",
|
|
|
+ "type" : "long",
|
|
|
+ "optional" : false,
|
|
|
+ "description" : "x coordinate. If `null`, the function returns `null`."
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "variadic" : false,
|
|
|
+ "returnType" : "double"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "params" : [
|
|
|
+ {
|
|
|
+ "name" : "y_coordinate",
|
|
|
+ "type" : "double",
|
|
|
+ "optional" : false,
|
|
|
+ "description" : "y coordinate. If `null`, the function returns `null`."
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name" : "x_coordinate",
|
|
|
+ "type" : "unsigned_long",
|
|
|
+ "optional" : false,
|
|
|
+ "description" : "x coordinate. If `null`, the function returns `null`."
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "variadic" : false,
|
|
|
+ "returnType" : "double"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "params" : [
|
|
|
+ {
|
|
|
+ "name" : "y_coordinate",
|
|
|
+ "type" : "integer",
|
|
|
+ "optional" : false,
|
|
|
+ "description" : "y coordinate. If `null`, the function returns `null`."
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name" : "x_coordinate",
|
|
|
+ "type" : "double",
|
|
|
+ "optional" : false,
|
|
|
+ "description" : "x coordinate. If `null`, the function returns `null`."
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "variadic" : false,
|
|
|
+ "returnType" : "double"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "params" : [
|
|
|
+ {
|
|
|
+ "name" : "y_coordinate",
|
|
|
+ "type" : "integer",
|
|
|
+ "optional" : false,
|
|
|
+ "description" : "y coordinate. If `null`, the function returns `null`."
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name" : "x_coordinate",
|
|
|
+ "type" : "integer",
|
|
|
+ "optional" : false,
|
|
|
+ "description" : "x coordinate. If `null`, the function returns `null`."
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "variadic" : false,
|
|
|
+ "returnType" : "double"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "params" : [
|
|
|
+ {
|
|
|
+ "name" : "y_coordinate",
|
|
|
+ "type" : "integer",
|
|
|
+ "optional" : false,
|
|
|
+ "description" : "y coordinate. If `null`, the function returns `null`."
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name" : "x_coordinate",
|
|
|
+ "type" : "long",
|
|
|
+ "optional" : false,
|
|
|
+ "description" : "x coordinate. If `null`, the function returns `null`."
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "variadic" : false,
|
|
|
+ "returnType" : "double"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "params" : [
|
|
|
+ {
|
|
|
+ "name" : "y_coordinate",
|
|
|
+ "type" : "integer",
|
|
|
+ "optional" : false,
|
|
|
+ "description" : "y coordinate. If `null`, the function returns `null`."
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name" : "x_coordinate",
|
|
|
+ "type" : "unsigned_long",
|
|
|
+ "optional" : false,
|
|
|
+ "description" : "x coordinate. If `null`, the function returns `null`."
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "variadic" : false,
|
|
|
+ "returnType" : "double"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "params" : [
|
|
|
+ {
|
|
|
+ "name" : "y_coordinate",
|
|
|
+ "type" : "long",
|
|
|
+ "optional" : false,
|
|
|
+ "description" : "y coordinate. If `null`, the function returns `null`."
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name" : "x_coordinate",
|
|
|
+ "type" : "double",
|
|
|
+ "optional" : false,
|
|
|
+ "description" : "x coordinate. If `null`, the function returns `null`."
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "variadic" : false,
|
|
|
+ "returnType" : "double"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "params" : [
|
|
|
+ {
|
|
|
+ "name" : "y_coordinate",
|
|
|
+ "type" : "long",
|
|
|
+ "optional" : false,
|
|
|
+ "description" : "y coordinate. If `null`, the function returns `null`."
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name" : "x_coordinate",
|
|
|
+ "type" : "integer",
|
|
|
+ "optional" : false,
|
|
|
+ "description" : "x coordinate. If `null`, the function returns `null`."
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "variadic" : false,
|
|
|
+ "returnType" : "double"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "params" : [
|
|
|
+ {
|
|
|
+ "name" : "y_coordinate",
|
|
|
+ "type" : "long",
|
|
|
+ "optional" : false,
|
|
|
+ "description" : "y coordinate. If `null`, the function returns `null`."
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name" : "x_coordinate",
|
|
|
+ "type" : "long",
|
|
|
+ "optional" : false,
|
|
|
+ "description" : "x coordinate. If `null`, the function returns `null`."
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "variadic" : false,
|
|
|
+ "returnType" : "double"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "params" : [
|
|
|
+ {
|
|
|
+ "name" : "y_coordinate",
|
|
|
+ "type" : "long",
|
|
|
+ "optional" : false,
|
|
|
+ "description" : "y coordinate. If `null`, the function returns `null`."
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name" : "x_coordinate",
|
|
|
+ "type" : "unsigned_long",
|
|
|
+ "optional" : false,
|
|
|
+ "description" : "x coordinate. If `null`, the function returns `null`."
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "variadic" : false,
|
|
|
+ "returnType" : "double"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "params" : [
|
|
|
+ {
|
|
|
+ "name" : "y_coordinate",
|
|
|
+ "type" : "unsigned_long",
|
|
|
+ "optional" : false,
|
|
|
+ "description" : "y coordinate. If `null`, the function returns `null`."
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name" : "x_coordinate",
|
|
|
+ "type" : "double",
|
|
|
+ "optional" : false,
|
|
|
+ "description" : "x coordinate. If `null`, the function returns `null`."
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "variadic" : false,
|
|
|
+ "returnType" : "double"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "params" : [
|
|
|
+ {
|
|
|
+ "name" : "y_coordinate",
|
|
|
+ "type" : "unsigned_long",
|
|
|
+ "optional" : false,
|
|
|
+ "description" : "y coordinate. If `null`, the function returns `null`."
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name" : "x_coordinate",
|
|
|
+ "type" : "integer",
|
|
|
+ "optional" : false,
|
|
|
+ "description" : "x coordinate. If `null`, the function returns `null`."
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "variadic" : false,
|
|
|
+ "returnType" : "double"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "params" : [
|
|
|
+ {
|
|
|
+ "name" : "y_coordinate",
|
|
|
+ "type" : "unsigned_long",
|
|
|
+ "optional" : false,
|
|
|
+ "description" : "y coordinate. If `null`, the function returns `null`."
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name" : "x_coordinate",
|
|
|
+ "type" : "long",
|
|
|
+ "optional" : false,
|
|
|
+ "description" : "x coordinate. If `null`, the function returns `null`."
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "variadic" : false,
|
|
|
+ "returnType" : "double"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "params" : [
|
|
|
+ {
|
|
|
+ "name" : "y_coordinate",
|
|
|
+ "type" : "unsigned_long",
|
|
|
+ "optional" : false,
|
|
|
+ "description" : "y coordinate. If `null`, the function returns `null`."
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name" : "x_coordinate",
|
|
|
+ "type" : "unsigned_long",
|
|
|
+ "optional" : false,
|
|
|
+ "description" : "x coordinate. If `null`, the function returns `null`."
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "variadic" : false,
|
|
|
+ "returnType" : "double"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "examples" : [
|
|
|
+ "ROW y=12.9, x=.6\n| EVAL atan2=ATAN2(y, x)"
|
|
|
+ ]
|
|
|
+}
|