根据这个文档创建的py-UDF函数:https://help.aliyun.com/document_detail/98399.htm?spm=a2c4g.136928.0.0.3f4c51c8czDZRY#task-2482182提交时显示: MaxCompute中这是啥意思呀?文档里也没有sql语句呢:
把其他的节点关了再提交也不行
from odps.udf import annotate import datetime @annotate(“string->string”) class y_w_to_m(object): def evaluate(self, y_w): try: start_date = datetime.datetime.strptime(f'{year}-W{week-1}-1′, ‘%G-W%V-%u’).date() return datetime.datetime.strftime(start_date, ‘%Y%m’) except: return ”
MaxCompute中这是啥意思呀?[阿里云MaxCompute]
「点点赞赏,手留余香」
还没有人赞赏,快来当第一个赞赏的人吧!