我必须使用 apache 元模型对 hive 数据库执行查询。但是元模型中不存在 hive 中存在的方差和标准差等函数。当我进行休息 API 调用时,我收到以下错误:
"error": "Internal Server Error",
"exception": "org.apache.metamodel.query.parser.QueryParserException",
"message": "Not capable of parsing SELECT token: variance(age)",
"path": "/minimum"
我如何为此目的编写用户定义的函数?