Skip to content

Commit 42489fc

Browse files
authored
Merge branch 'master' into master
2 parents baac308 + 8c56cd1 commit 42489fc

File tree

13 files changed

+834
-253
lines changed

13 files changed

+834
-253
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,6 @@
66
target/
77
.DS_Store
88
*.pyc
9-
replace_config.sh
9+
replace_config.sh
10+
ajcore.*
11+
.vscode/

CHANGELOG.md

Lines changed: 25 additions & 248 deletions
Original file line numberDiff line numberDiff line change
@@ -1,249 +1,26 @@
1-
# 0.41.0
2-
- ArrayRecord support ZonedDateTime/LocalDate/Instant API
1+
# Changelog
2+
3+
## [0.47.0-public] - 2024-04-08
4+
5+
### Added
6+
- Support for new Stream type that enables incremental queries.
7+
- `preview` method to the `TableTunnel` for data preview purposes.
8+
- `OdpsRecordConverter` for parsing and formatting records.
9+
- Enhancements to the `Projects` class with `create` and `delete` methods now available, and `update` method made public. Operations related to the `group-api` package are now marked as deprecated.
10+
- Improved `Schemas` class to support filtering schemas with `SchemaFilter`, listing schemas, and retrieving detailed schema metadata.
11+
- `DownloadSession` introduces new parameter `disableModifiedCheck` to bypass modification checks and `fetchBlockId` to skip block ID list retrieval.
12+
- `TableWriteSession` supports writing `TIMESTAMP_NTZ` / `JSON` types and adds a new parameter `MaxFieldSize`.
13+
14+
### Changed
15+
- The implementation of the `read` method in the `Table` class is now replaced with `TableTunnel.preview`, supporting new types in MaxCompute and time types switched to Java 8 time types without timezone.
16+
- The default `MapWritable` implementation switched from `HashMap` to `LinkedHashMap` to ensure order.
17+
- `Column` class now supports creation using the Builder pattern.
18+
19+
### Improved
20+
- `TableReadSession` now supports predicate pushdown and introduces new parameters `maxBatchRawSize` and `splitMaxFileNum`.
21+
- `UpsertSession` enhancements:
22+
- Supports writing partial columns.
23+
- Allows setting the number of Netty thread pools with the default changed to 1.
24+
- Enables setting maximum concurrency with the default value changed to 16.
25+
- `TableTunnel` now supports setting `quotaName` option.
326

4-
# 0.40.x
5-
- fix DateTime using java.time
6-
Fixes
7-
- fix incorrect value of schemaName value in two-tier project
8-
9-
# 0.36.4-public
10-
## Enhencements:
11-
- [Core] Support iterate over projects with filter. See Projects#iteratorByFilter(ProjectFilter filter)
12-
- [Tunnel] Remove the 8 MB limit on field size. The field size limit can now be configured by "odps.sql.cfile2.field.maxsize".
13-
- [Tunnel] Support write timeout
14-
- [Tunnel] Support auto partition creation in StreamTunnel
15-
- [SQLExecutor] Add tunnel endpoint cache
16-
- [SQLExecutor] Support result download in batch
17-
## Fixes:
18-
1. [Core] Fix incorrect return value from Instance#getTaskCost(String taskName)
19-
2. [SQLExecutor] Fix hang when downloading result
20-
21-
# 0.34.4
22-
- session v2
23-
- support SQL function
24-
- support stream tunnel
25-
26-
# 0.33.7
27-
- support list table
28-
- table tunnel supports overwrite mode
29-
- support global settings
30-
- support enable/disable download privilege
31-
32-
# 0.32.5
33-
- java8+ required
34-
- replace jaxb with simple xml
35-
- add parameter to enable/disable type validation in ArrayRecord
36-
37-
# 0.31.5
38-
- delete dateutils related in tunnel r/w, to unify timezone logic with oversea version
39-
40-
# 0.31.4
41-
- support tunnel download session async mode
42-
43-
# 0.31.3
44-
- import maven source plugin explicitly to avoid problems
45-
46-
# 0.31.2
47-
- support optional strict data validation for String and datetime
48-
- support new typeinfo
49-
50-
# 0.31.0
51-
- remove fastjson
52-
- async create download session
53-
54-
# 0.30.1
55-
- support java8_161+ xml problem
56-
- biggraph support set running cluster
57-
58-
# 0.30.8
59-
- move updateProject/listProject to odps-sdk-core
60-
61-
# 0.30.0
62-
- add extended labels
63-
- support java9
64-
- support biggraph flash job
65-
- expand decimal scale
66-
67-
# 0.29.10
68-
- provide join key for udx
69-
70-
# 0.29.9
71-
- add tunnel transform header
72-
73-
# 0.29.8
74-
- increase openmr volume input/output limit from 256 to 1024
75-
- add user env in task settings, include user ip and mac
76-
77-
# 0.29.6
78-
- revert xflow priority
79-
80-
# 0.29.4
81-
- SQLTask.getResultSet support tunnel endpoint
82-
83-
# 0.29.3
84-
- add sqlrt task
85-
- support java1.8_161 xml problem, force to use cdata
86-
87-
# 0.29.2
88-
- add biggraph
89-
- biggraph support setting running cluster
90-
91-
# 0.29.1
92-
- delete project.getSystemVersion
93-
- commons-logging version to 1.2
94-
- add AuthorizationQueryInstance to support auth async query
95-
96-
# 0.28.0
97-
- quota support gpu
98-
- refactor tunnel buffered writer retry
99-
- add volume lifecycle
100-
- support parent and son quota
101-
- tunnel add logger
102-
- openmr support sprint-boot jar
103-
- support create external table
104-
- remove remove jcabi dep
105-
106-
# 0.27.0
107-
- add InstanceQueueingInfo
108-
- support check permission for select columns
109-
110-
# 0.26.5
111-
- remove jcabi, fix 0.26.2-public duplicated field bug
112-
113-
# 0.26.4
114-
- fix mr secondary partition bug
115-
116-
# 0.26.3
117-
- fastjson update to 1.2.28.odps
118-
119-
# 0.26.2
120-
- fastjson update to 1.2.25
121-
122-
# 0.26.0
123-
- add SQLTask.getResultSet
124-
- copytask support new type
125-
- mv xflow, xflows, ml from core-internal to core
126-
127-
# 0.25.2
128-
- refactor Date io in tunnel
129-
- refactor Java classes for new type
130-
- fix graph classloader bug in sandbox
131-
132-
# 0.25.0
133-
- add `Instance.getTaskInfo`
134-
- add `SQLTASK.getSqlWarning`
135-
- add `Instance.getTaskQuotaJson`
136-
- specify 'Asia/Shanghai' to be default timezon in DateUtils
137-
- add type info system and extend `OdpsType` to support more data type
138-
- refactor tunnel sdk to support more data type
139-
140-
# 0.24.0
141-
- improve sync instance
142-
- support external table
143-
- copy task support tunnel endpoint router
144-
- fix `user.reload` bug, mk it work
145-
- optimize mr multi output
146-
- add `BearerTokenAccount`
147-
148-
# 0.23.4
149-
- always do reload in onlinemodel
150-
151-
# 0.23.3
152-
- use utf-8 charset in event notification
153-
154-
# 0.23.2
155-
- make `OdpsHooks` thread safe
156-
157-
# 0.23.1
158-
- add `tables.loadTables` and `tables.reloadTables`
159-
160-
# 0.22.3
161-
- add `listRolesForUserName` and `listRolesForUserID`
162-
- refine `OnlineModel`
163-
164-
# 0.22.2
165-
- fix mr get summary hang
166-
167-
# 0.22.1
168-
- revert instance retry, rm guid in job model
169-
170-
# 0.22.0
171-
- `SecurityConfiguration` support AclV2 and PackageV2
172-
- add `Instance.getTaskCost`
173-
- switch to fastjson for parsing json, almost
174-
- remove dependency bouncycastle
175-
176-
# 0.21.2
177-
- add retry logic in `TunnelRecordReader`
178-
- add `TunnelBufferedWriter`
179-
- add `InstanceTunnel` for downloading result of select statement
180-
- default logview host change to logview.odps.aliyun-inc.com
181-
- default connection timeout change from 5s to 10s
182-
183-
# 0.21.1
184-
- add `Function.getProject`, `Volume.getProject` and `StreamJob.getProject`
185-
- add `UploadSession.writeBlock`, `ProtobufRecordStreamWriter.write(RecordPack)` is deprecated
186-
- add `InstanceTunnel`
187-
- fix `Function.getResourceNames` returning wrong resource name
188-
- return partition info in `PackReader.read`
189-
- add `ServerTask` support
190-
191-
# 0.20.7
192-
- security improvement
193-
194-
# 0.20.1
195-
- fix pipeline combiner
196-
197-
# 0.20.0
198-
- add ArrayRecord.clear()
199-
- add onInstanceCreated hook
200-
- array|map is supported in TableTunnel
201-
- add volumefs sdk
202-
- add Table.getTableID()
203-
204-
# 0.19.3
205-
- fix tunnel download with specified columns
206-
207-
# 0.19.2
208-
- fix DateUtils threads bug.
209-
210-
# 0.19.1
211-
- add matrix sdk
212-
213-
# 0.19.0
214-
- add volume resource sdk
215-
- `StreamRecordPack.clear()` do not throw exception any more
216-
- add `StreamClient.loadShard(long)`, deprecate `StreamClient.loadShard(int)`
217-
- add `StreamClient.waitForShardLoad()`
218-
- add `SQLTask.getResult`
219-
- add `XFlows.getXFlowInstance`
220-
- add `ArrayRecord(TableSchema)`
221-
- add `CheckPermission`
222-
- CopyTask support GroupAccount
223-
224-
# 0.18.0
225-
- remove odps-sdk-ml(unused code)
226-
227-
# 0.17.8
228-
- decimal range check in sdk
229-
- support TableSchema set Columns
230-
- Tables.create 支持comment
231-
232-
# 0.17.4
233-
- fix domain account bug
234-
235-
# 0.17.2
236-
- fix WritableRecord.getBytes
237-
238-
# 0.17.0
239-
- fix get resource as streammulti
240-
- tmp resource
241-
- Get Project Clusters
242-
- public CheckSum
243-
- Table support if (not) exists
244-
245-
# 0.16.6
246-
- project cluster API
247-
248-
# 0.16.5
249-
- RecordPack memory size

CHANGELOG_CN.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# 更新日志
2+
3+
## [0.47.0-public] - 2024-04-08
4+
5+
### 新增
6+
- 对 Stream 新类型的支持,可用于进行增量查询。
7+
-`TableTunnel` 中增加了 `preview` 方法,用于数据预览。
8+
- 引入 `OdpsRecordConverter`,用于对 Record 进行解析和格式化。
9+
- `Projects` 类增加了 `create`(创建)和 `delete`(删除)方法,`update` 方法现已公开。`group-api` 包下的相关操作已被标记为弃用。
10+
- `Schemas` 类增强,支持通过设置 `SchemaFilter` 来过滤 schema,支持 `listSchema` 以及获取 schema 的详细元信息。
11+
- `DownloadSession` 新增参数 `disableModifiedCheck`,用于跳过修改检查。新增参数 `fetchBlockId`,用于跳过获取 block ID 列表。
12+
- `TableWriteSession` 支持写入 `TIMESTAMP_NTZ` / `JSON` 类型,新增参数 `MaxFieldSize`
13+
14+
### 变更
15+
- `Table` 类的 `read` 方法实现现已更换为 `TableTunnel.preview` 方法,会支持 MaxCompute 新类型,时间类型切换为 Java 8 无时区类型。
16+
- 默认的 `MapWritable` 实现从 `HashMap` 改为 `LinkedHashMap`,以确保有序。
17+
- `Column` 类现支持使用建造者模式(Builder pattern)进行创建。
18+
19+
### 改进
20+
- `TableReadSession` 现支持谓词下推,新增参数 `maxBatchRawSize``splitMaxFileNum`
21+
- `UpsertSession` 现支持:
22+
- 写入部分列。
23+
- 设置 Netty 线程池的数量(默认更改为 1)。
24+
- 设置最大并发量(默认值更改为 16)。
25+
- `TableTunnel` 支持设置 `quotaName` 选项。
26+

0 commit comments

Comments
 (0)