v0.50.5-public
·
3 commits
to release/0.50.x
since this release
Changelog
[0.50.5-public] - 2024-11-13
Features
- TableAPI added retry logic for errors in network requests that can be safely retried, improving the stability of the interface. A new configuration option,
retryWaitTimeInSeconds
, has been added toRestOptions
to specify the retry wait time. - SQLTask added an overload of the
run
method that supports passing in themcqaConnHeader
parameter for submitting MCQA 2.0 jobs. - SQLExecutor now supports specifying the
odps.task.wlm.quota
hint to set the interactive quota when submitting MCQA 2.0 jobs. - RestClient introduced a new
retryWaitTime
parameter along with corresponding getter and setter methods to configure the retry wait time for network requests. - Configuration added a new
socketRetryTimes
parameter with corresponding getter and setter methods to configure the retry wait time for Tunnel network requests. If not set, it will use the configuration inRestClient
; otherwise, this configuration will be used.
Changes
- Instances removed the overloaded
get
methodget(String projectName, String id, String quotaName, String regionId)
, which was added in version0.50.2-public
to retrieve MCQA 2.0 instances. Now, users do not need to distinguish whether a job is an MCQA 2.0 job when using theget
method, so this method has been removed. Users can directly use theget(String projectName, String id)
method to retrieve instances.
Fixes
- Table.read fixed an issue where the configured network-related parameters (such as timeout and retry logic) did not take effect correctly during data preview.
- Streams fixed an issue where specifying the
version
in thecreate
method would cause an error. A default value of1
has also been added forversion
, indicating the initial version of the table.
更新日志
[0.50.5-public] - 2024-11-13
功能
- TableAPI 为可以安全重试的网络请求类型的报错增加了相应的重试逻辑,从而提高了接口的稳定性。在
RestOptions
中增加了retryWaitTimeInSeconds
配置项,用于设置重试等待时间。 - SQLTask 新增了
run
方法的重载,支持传入mcqaConnHeader
参数,以便提交 MCQA 2.0 作业。 - SQLExecutor 支持通过指定
hints
中的odps.task.wlm.quota
来设置提交 MCQA 2.0 作业时的 interactive quota。 - RestClient 新增了
retryWaitTime
参数,以及相应的 getter 和 setter 方法,以配置网络请求的重试等待时间。 - Configuration 新增了
socketRetryTimes
参数以及相应的 getter 和 setter 方法,用于配置 Tunnel 网络请求的重试等待时间。如果未设置,则使用RestClient
中的配置,否则使用此配置。
变更
- Instances 移除了
get
的重载方法get(String projectName, String id, String quotaName, String regionId)
,该方法在0.50.2-public
版本中新增,用于获取 MCQA 2.0 实例。现在,用户在使用get
方法时无须区分作业是否为 MCQA 2.0 作业,因此移除该方法可以直接使用get(String projectName, String id)
方法来获取实例。
修复
- Table.read() 修复了在数据预览时,配置的网络相关参数(如超时时间、重试逻辑)无法正确生效的问题。
- Streams 修复了
create
方法中,如果指定了version
会报错的问题。同时增加了version
的默认值(1),表示表的初始版本。