因为我目前还不可以贴图,语句什么的直接贴了
在存在数据的情况下,查询语句(不使用UDF函数),查询到的数据及查询语句如下:
with input as(
SELECT
t,ts,v
FROM
[IoTHUB-richard]
where t='43'
)
select
*
into output
from input
输出结果:
结果
"43"
|
"+8|1497326400"
|
52.7566
|
"43"
|
"+8|1497326401"
|
46.3946381
|
函数定义如下,返回类型为bigint:
function main(s) {
return parseInt(s);
}
当使用UDF函数到查询语句中,会报Internal
Server Error
with input as(
SELECT
t,ts,v
FROM
[IoTHUB-richard]
where t='43'
)
select
udf.testParseInt(t) as t1
into output
from input
希望各位大神能够帮我解决这个问题,不胜感激。