v0.50.2-public
·
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:
isActivewill return false, indicating that there are no active Sessions in MCQA 2.0 mode.- Added a
cancelmethod to terminate ongoing jobs. getExecutionLognow returns a deep copy of the current log and clears the current log,
preventing duplicates.- New
quotamethod inSQLExecutorBuilderallows reusing already loadedQuota, reducing
load times. - New
regionIdmethod inSQLExecutorBuilderallows specifying the region where the quota is
located.
- Quotas Added
getWlmQuotamethod withregionIdparameter to fetch quota for a specified regionId. - Quota Introduced
setMcqaConnHeadermethod to allow users to override quota using a custom
McqaConnHeader, supporting MCQA 2.0. - Instances Added
getmethod applicable for MCQA 2.0 jobs, requiring additional parameters for QuotaName
and RegionId. - Instance Further adapted for MCQA 2.0 jobs.
- TableSchema
basicallyEqualsmethod will no longer strictly check for identical Class types.
Optimization
- SQLExecutor The
runmethod'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
createmethod.
更新日志
[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 语法错误。