Skip to content

v0.50.2-public

Choose a tag to compare

@idleyui idleyui released this 23 Oct 03:38
· 13 commits to release/0.50.x since this release

Changelog

[0.50.2-public] - 2024-10-23

Features

  • SQLExecutor Enhanced MCQA 2.0 functionality:
    • isActive will return false, indicating that there are no active Sessions in MCQA 2.0 mode.
    • Added a cancel method to terminate ongoing jobs.
    • getExecutionLog now returns a deep copy of the current log and clears the current log,
      preventing duplicates.
    • New quota method in SQLExecutorBuilder allows reusing already loaded Quota, reducing
      load times.
    • New regionId method in SQLExecutorBuilder allows specifying the region where the quota is
      located.
  • Quotas Added getWlmQuota method with regionId parameter to fetch quota for a specified regionId.
  • Quota Introduced setMcqaConnHeader method to allow users to override quota using a custom
    McqaConnHeader, supporting MCQA 2.0.
  • Instances Added get method applicable for MCQA 2.0 jobs, requiring additional parameters for QuotaName
    and RegionId.
  • Instance Further adapted for MCQA 2.0 jobs.
  • TableSchema basicallyEquals method will no longer strictly check for identical Class types.

Optimization

  • SQLExecutor The run method's hints will now be deep-copied, preserving the user-provided Map and
    supporting immutable types (e.g., ImmutableMap).

Fixes

  • Stream Fixed potential SQL syntax errors in the create method.

更新日志

[0.50.2-public] - 2024-10-23

功能

  • SQLExecutor 增强 MCQA 2.0 功能:
    • isActive 将返回 false,指示在 MCQA 2.0 模式下没有活跃的 Session。
    • 新增 cancel 方法,用于中止正在执行的作业。
    • getExecutionLog 现在返回当前日志的深拷贝并清空当前日志,避免重复获取。
    • SQLExecutorBuilder 新增 quota 方法,支持复用已加载的 Quota,减少加载时间。
    • SQLExecutorBuilder 新增 regionId 方法,允许指定 quota 所在的 region。
  • Quotas 新增带 regionId 参数的 getWlmQuota 方法,用于获取指定 regionId 的 quota。
  • Quota 新增 setMcqaConnHeader 方法,支持用户通过自定义的 McqaConnHeader 重载 quota,以适配 MCQA 2.0。
  • Instances 新增适用于 MCQA 2.0 的 get 方法,需额外传入 MCQA 2.0 的 QuotaName 和 RegionId。
  • Instance 进一步适配 MCQA 2.0 作业。
  • TableSchema basicallyEquals 方法将不再严格检查两个类的 Class 类型一致性。

优化

  • SQLExecutor run 方法中的 hints 现在会进行深拷贝,保护用户传入的 Map,支持不可变类型(如 ImmutableMap)。

修复

  • Stream 修复 create 方法中的潜在 SQL 语法错误。