16 Commits
Author SHA1 Message Date
Gabriel b68d1d5052 [refactor](external) Remove Hive ACID, Avro and LakeSoul readers on master (#69601)
### What problem does this PR solve?

Related PR: #69312

Port #69312 from `branch-4.2` to current `master`.

- Remove Hive ACID read transactions, shared read locks, write-ID
snapshots, delta-file listing and the BE transactional reader. Reject
full ACID and insert-only reads in the Hive connector.
- Adapt the changes to master's connector modules and unified reader
initialization interfaces. Preserve ordinary Hive scanning and
Iceberg/Paimon ORC position-delete and deletion-vector handling.
- Reject standalone Avro and deprecated table markers before file access
or metadata-only counts. Keep LakeSoul unsupported and remove its
obsolete test service and examples.
- Keep the retired `skip_checking_acid_version_file` name as a
compatibility no-op for client session initialization, using the
existing empty-string fallback for variable reads.
- Preserve Iceberg/Hudi Avro metadata dependencies. The Thrift changes
add deprecation comments only; every definition and numeric ID is
unchanged.

### Release note

Remove support for Hive transactional reads, including insert-only
tables, and standalone Avro file reads. LakeSoul remains unsupported.
Iceberg and Hudi Avro metadata parsing remains supported. The retired
`skip_checking_acid_version_file` session variable remains accepted as a
compatibility no-op.

### Validation

- Hive connector: all 490 tests passed; HMS client: all 155 tests
passed.
- 20 targeted FE core tests passed: deprecated-read rejection,
partition-path parsing, generic file scan planning and Hive streaming
scans.
- Review follow-up: reproduced the legacy ACID session-variable failure
before the fix; all 8 focused compatibility, variable-export and
unsupported-read tests passed after the fix.
- FE Checkstyle passed with zero violations for every affected FE
module.
- All 12 affected C++ source/header files passed clang-format 16; build
hygiene and shell syntax checks passed.
- Syntax-only compilation passed for all 6 affected BE production
translation units and all 4 affected BE test translation units. Isolated
checks relaxed pre-existing unused-constant/shadow warnings. Full BE
linking and runtime tests remain for CI.
- Verified that Thrift changes are comments only and checked the
affected definitions against branch-3.1/4.0/4.1/4.2. `git diff --check`
passed.

### Check List (For Author)

- Test
    - [x] Unit Test
- [x] Manual test: formatting, syntax, build hygiene and Thrift
compatibility checks described above.
- Behavior changed:
    - [x] Yes. Reject unsupported external reads explicitly.
- Does this need documentation?
    - [x] No. This ports the existing removal to master.
2026-10-27 10:29:08 +08:00
Calvin Kirs 5e1c5427b3 [chore](broker)(sdk) Remove apache_hdfs_broker daemon module and in-tree SDKs (#64732)
## Proposed changes

The `apache_hdfs_broker` daemon under `fs_brokers/` has not been
modified for nearly two years, and users have migrated to the built-in
S3 / HDFS TVF, so the standalone broker component is no longer needed.
The in-tree SDKs under `sdk/` (`go-doris-sdk`, `java-doris-sdk`) are now
maintained out-of-tree in a separate `doris-sdk` repo and no longer need
to live here.

### Removed
- `fs_brokers/apache_hdfs_broker/` — broker daemon module
- `sdk/` — `go-doris-sdk` + `java-doris-sdk`
- `docker/runtime/broker/` — broker daemon docker image, and the
`hdfs-broker-doris` compose demo

### Build / CI / docker references cleaned up
`build.sh` (`--broker` / `BUILD_BROKER`), `build-for-release.sh`,
`.github/workflows/build-extension.yml` (`build-broker` job),
`.github/workflows/code-checks.yml`, `.gitignore`,
`docker/runtime/docker-build.sh`, `docker/runtime/all-in-one/Dockerfile`
+ `entry_point.sh`, `docker/runtime/README.md`, and `threat-model.md`.

### Kept (intentionally out of scope)
- `fs_brokers/cdc_client/` (not a broker; still built into BE)
- All FE/BE broker **functionality**: `BrokerMgr`, `BrokerDesc`, broker
load, `fe-filesystem-broker`, the BE filesystem broker module, and
`PaloBrokerService.thrift`

This PR only removes the standalone broker daemon component and the
in-tree SDK sources; the broker load/storage feature in FE/BE is
unchanged, so there is no metadata/edit-log compatibility impact.
2026-07-07 14:00:09 +08:00
Gavin Chou d6ea787146 [chore](build) Fix missing ms in output when build for release arm64 (#46031) 2024-12-30 17:05:45 +08:00
Yongqiang YANG c412e94e40 [chore](build) put tools in release package (#44216) 2024-11-20 14:50:37 +08:00
Gavin Chou 781a994220 [chore](build) Skip cloud module for arm64 (aarch64) in build-for-release.sh (#39804) 2024-08-28 21:40:02 +08:00
Gavin Chou 48d789e128 [chore](build) Build cloud module by default (#34143) 2024-04-26 23:05:57 +08:00
Mingyu Chen bf3fd9e122 [build](audit-loader) remove the build script of audit loader in build.sh (#32956)
Audit Loader is already a built-in plugin.
Remove it from default `build-for-release` script.
2024-03-29 11:33:39 +08:00
wudongliang 406db6da92 [Improve](build-script)Add be-extension-ignore to ignore avro-scanner when building release packages (#32699) 2024-03-22 22:54:19 +08:00
shuke 6c6466b465 [release](build script) fix build release bug when build multiple version on same machine #32104 2024-03-12 15:41:12 +08:00
Kang a3fee40ce5 [bugfix](build script) fix noavx2 package name branch condition #21356
ARCH changed from x86_64 to x64, but the check condition for noavx2 remains x86_64. Just remove check for ARCH.
2023-06-30 09:03:05 +08:00
Mingyu Chen 6eb8fc0fe3 [improvement](scripts) change the arch name in build-for-release scripts (#21240) 2023-06-27 18:11:17 +08:00
Mingyu Chen e6f395c9da [build](scripts) modify build-for-release.sh (#20398) 2023-06-04 20:47:42 +08:00
Mingyu Chen 42bac3343d [Refactor](StmtExecutor)(step-1) Extract profile logic from StmtExecutor and Coordinator (#19219)
Previously, we use RuntimeProfile class directly, and because there are multiple level in profile, so you can see there may be several RuntimeProfile instances be to maintain.

I created several new classes for profile:

class Profile:
	The root profile of a execution task(query or load)
	
class SummaryProfile:
	The profile that contains summary info of a execution task,
	such as start time, end time, query id. etc.
	
class ExecutionProfile:
	The profile for a single Coordinator. Each Coordinator will
	have a ExecutionProfile.
The profile structure is as following:

Profile:
	SummaryProfile:
	ExecutionProfile 1:
		Fragment 0:
			Instance 0:
			Instance 1:
			...
		Fragment 1:
		...
	ExecutionProfile 2:
		...
You can see, each Profile has a SummaryProfile and one or more ExecutionProfile.
For most kinds of job, such as query/insert, there is only one ExecutionProfile. But for broker load job, will may be more than one ExecutionProfile, corresponding to each sub task of the load job.

How to use
For query/insert, etc:

Each StmtExcutor will have a Profile instance.
Each Coordinator will have a ExecutionProfile instance.
StmtExcutor is responsible for the SummaryProfile, it will update the SummaryProfile during the execution.
Coordinator is responsible for the ExecutionProfile, it will first add ExecutionProfile to the child of Profile, and update the ExecutionProfile periodically during the execution.
For Load/Export, etc:

Each job will hava a Profile instance.
For each Coordinator of this job, add its ExecutionProfile to the children of job's Profile.
Behavior Change
The columns of show load profile/show query profile and QueryProfile Web UI has changed to:

| Profile ID | Task Type | Start Time | End Time | Total | Task State | User | Default Db| Sql Statement | Is Cached | Total Instances Num | Instances Num Per BE | Parallel Fragment Exec Instance Num | Trace ID |
The Query Id and Job Id is removed and using Profile ID instead.
For load job, the profile id is job id, for query/insert, is query id.
2023-05-06 09:01:51 +08:00
Mingyu Chen ddd67dba8c [chore](release) build-for-release.sh support arm (#19270)
Use `uname -m` to get arch
2023-05-04 19:48:41 +08:00
Pxl ec517a53a8 [Chore](build) upgrade clang-format version to 16 && move thrift to fe-common (#19155)
upgrade clang-format version to 16
move thrift to fe-common
fix core dump on pipeline engine when operator canceled and not prepared
2023-04-28 14:14:51 +08:00
Mingyu Chen 5062c62ee1 [chore](script) add build-for-release.sh (#15545) 2023-01-02 22:50:36 +08:00