本文为您介绍错误码ODPS-1850001: Unsupported feature in session mode的报错场景,并提供对应的解决方案。
错误1:SESSION2 fallback from service mode to offline mode since there is udf in the map task
错误信息
ODPS-1850001: Unsupported feature in session mode - SESSION2 fallback from service mode to offline mode since there is udf in the map task.
错误码描述
由于Map任务中存在UDF,SESSION2从服务模式回退到离线(offline)模式。
解决方案
普通的SQL作业如果开启了Service Mode
模式,会回退到offline模式,不影响作业运行。但SQLRT(查询加速SQL)任务会失败,需要在SQL前增加set odps.mcqa.disable=true;
语句关闭查询加速。
错误2:Non select query not supported
错误信息
ODPS-1850001: Unsupported feature in session mode - Non select query not supported.
错误码描述
使用查询加速模式执行了DML语句导致报错。查询加速模式仅支持DDL和DQL语句(如CREATE、SELECT等),不支持DML语句(如INSERT等)。
解决方案
如果您想执行DML语句,需要退出查询加速模式执行。
文档内容是否对您有帮助?