gpt4 book ai didi

azure - 在 azure 流分析中使用拆分

转载 作者:行者123 更新时间:2023-12-03 05:08:26 25 4
gpt4 key购买 nike

我有格式为“1234.567.111”的字符串。我想把它分成三个整数。

我在 azure 流分析中没有看到拆分函数。是否可以通过其他方式做到这一点。

谢谢

更新:

我添加了分割功能的请求here.. ,如果你们也投同样的票,我将不胜感激..

最佳答案

万一有人像我一样在 7 年后来到这里😅 2022 年仍然没有 split 函数,但很容易创建一个简单的 JS UDF,尽管执行资源/时间损失可能很小

function main(splitstr, splitchar, index) {
var res = null;

try {
res = splitstr.split(splitchar)[index];
}catch(error){
throw splitstr;
}

return res;
}

关于azure - 在 azure 流分析中使用拆分,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31555293/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com