![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
代码运行ERROR
菜菜雪丫头
这个作者很懒,什么都没留下…
展开
-
RuntimeError:The size of tensor a (100) must match the size of tensor b (12800) at non-singleton di
问题:维度不对应,一个第一维是1,另一个第一维是128解决:往前追溯,发现问题根源,使用repeat将其改为128维:注意:这里要使用.size()将其改为128维,而不能直接写128,负责运行几轮后便会报错。...原创 2022-03-14 20:02:23 · 10613 阅读 · 0 评论 -
FAILED: SemanticException [Error 10016]: Line 66:45 Argument type mismatch ‘ca_coupon_id‘: “map“ or
FAILED: SemanticException [Error 10016]: Line 66:45 Argument type mismatch 'ca_coupon_id': "map" or "list" is expected at function SIZE, but "string" is found问题语句:if(ca_coupon_id is null, 0, size(ca_coupon_id)) as m_coupon_available_num补充知识点:MySQL下的原创 2021-09-03 16:21:54 · 714 阅读 · 0 评论 -
FAILED: ParseException line 564:40 mismatched input ‘<EOF>‘ expecting ) near ‘null‘ in subquery sour
这是我在join两个sql查询时遇到的问题,当时检查了很多遍格式问题,发现并没有缺少‘ )’,最后从头检查时才发现问题。问题原因:第一个子查询最后一个语句带了分号,终止了语句。where dt between '$start_date' and '$end_date' and fee is not null; ) aa join( select * fro原创 2021-09-03 15:39:35 · 4681 阅读 · 0 评论