Skip to content

v0.50.5-public

Compare
Choose a tag to compare
@idleyui idleyui released this 13 Nov 08:48
· 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 to RestOptions to specify the retry wait time.
  • SQLTask added an overload of the run method that supports passing in the mcqaConnHeader 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 in RestClient; otherwise, this configuration will be used.

Changes

  • Instances removed the overloaded get method get(String projectName, String id, String quotaName, String regionId), which was added in version 0.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 the get method, so this method has been removed. Users can directly use the get(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 the create method would cause an error. A default value of 1 has also been added for version, 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),表示表的初始版本。