耶也夜

关注

Schema for type Unit is not supported

耶也夜

关注

阅读 146

2022-02-20

 //自定义函数实现需求
  def userLpdf(id:String,length:Int,name:String):Unit={
    val len=length-id.length
    "0" * len+id

  }

自定义udf函数的时候,爆出错误Schema for type Unit is not supported

实际上原因是自定义的函数没有返回值,所以导致出错,把Unit改为String或者直接省去就可以解决问题

相关推荐

科牛

RuntimeError: Bool type is not supported by dlpack

科牛 104 0 0

佃成成成成

Field [price] of type [text] is not supported for aggregation [avg]

佃成成成成 91 0 0

萨科潘

MindSpore报错:type conversion of ‘Parameter‘ is not supported,so data type int32 cannot be converted..

萨科潘 135 0 0

言诗把酒

HttpMediaTypeNotSupportedException: Content type ‘text/plain;charset=ISO-8859-1‘ not supported

言诗把酒 188 0 0

萧让听雪

kali linux xtightvncviewer 出错“No configured security type is supported by 3.3 VNC Viewer“

萧让听雪 123 0 0

洒在心头的阳光

Content type ‘application/json;charset=UTF-8‘ not supported异常的解决过程

洒在心头的阳光 6 0 0

盖码范

Content type ‘application/x-www-form-urlencoded;charset=UTF-8‘ not supported

盖码范 8 0 0

千行

Unit Testing

千行 167 0 0

凉夜lrs

Unit 3

凉夜lrs 79 0 0

绣文字

unit介绍

绣文字 130 0 0

精彩评论(0)

0 0 举报