因為從trino 351修改了協議,但是官方也是提供了兼容方法的,以下是解決方法
客戶端協議兼容
- 配置協議可選請求頭名
一般為etc/trino/config.properties
protocol.v1.alternate-header-name=Presto
參考資料
https://trino.io/blog/2021/01/04/migrating-from-prestosql-to-trino.html
https://trino.io/docs/current/admin/properties-general.html#