Repository navigation
feat(warehouse): add maxcompute destination - #7568
Conversation
|
👋 I'm rudder-devbox. I opened this PR from task Mention |
|
CI lint failed on two
|
|
Knowledge distillation completed |
|
I found no PR code failure to fix in this run. Snowflake’s These are upstream driver and service failures, so I made no repository change. The PR branch remains at |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #7568 +/- ##
==========================================
- Coverage 85.24% 84.35% -0.90%
==========================================
Files 631 640 +9
Lines 62979 64246 +1267
==========================================
+ Hits 53689 54196 +507
- Misses 9287 10047 +760
Partials 3 3 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
The tracing failure was a port collision: CI showed the transformer using The separate Snowflake job still hits a data race in unchanged |
|
Knowledge distillation completed |
|
The ARM64 image build failed before compilation: |
Restore shared object-storage and validation paths, remove partition-plan plumbing, and use uuid_ts for ingestion partitions.
|
The Snowflake job failed in Offline Snowflake tests, the warehouse build, formatting, and golangci-lint pass. The live Snowflake suite needs CI credentials; |
|
Knowledge distillation completed |
…cket name The MaxCompute bucket name may now carry a folder path (bucket/path). The Alibaba OSS config conversion splits it into the bucket and the staging prefix, so the connection test, uploads and LOAD all use the folder without a separate prefix setting. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> 🔒 Scanned for secrets using gitleaks 8.28.0
There was a problem hiding this comment.
🔵 Needs a closer look
Unresolved critical issues can duplicate committed rows during retries and allow cleanup to drop staging tables used by active uploads.
9 open issues
Restrict staging cleanup to tables owned by this upload Row-number helper alias can collide with an event property Carry-forward marker alias can collide with a user trait Staging-table cleanup failure can cause duplicate rows on retry Reserved-keyword escaping can select the wrong partition column Retry attempts can leave unacknowledged files in the load folder Remove the unconditional skip from the MaxCompute CI job OSS validation hides actionable local configuration errors Schema readiness check passes when the namespace is missing
Review effort: Balanced
…ation Move the ODPS SDK wrapper from warehouse/client to warehouse/integrations/maxcompute/client, drop the ODPS prefix from its names and remove test-only constructors. warehouse/client keeps the ODPS field and a Query hook for the admin query tool, as it does for BigQuery. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> 🔒 Scanned for secrets using gitleaks 8.28.0
There was a problem hiding this comment.
🔵 Needs a closer look
Cleanup can drop active uploads’ staging tables or trigger retries of already committed inserts, while directory loads can import orphaned files and duplicate data.
9 open issues
Restrict staging cleanup to tables owned by this upload Row-number helper alias can collide with an event property Carry-forward marker alias can collide with a user trait Staging-table cleanup failure can cause duplicate rows on retry Reserved-keyword escaping can select the wrong partition column Retry attempts can leave unacknowledged files in the load folder Remove the unconditional skip from the MaxCompute CI job OSS validation hides actionable local configuration errors Schema readiness check passes when the namespace is missing
Review effort: Balanced
Read the OSS bucket and optional directory prefix from the directoryPath setting. When the users INSERT has committed, a failed staging-table DROP is logged instead of failing the load, so a retry cannot append the same users again. A timestamp partition column resolves to _timestamp or, when reserved-keyword escaping is skipped, timestamp. Helper aliases in the users carry-forward and view SQL avoid the table's column names. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> 🔒 Scanned for secrets using gitleaks 8.28.0
There was a problem hiding this comment.
🔵 Needs a closer look
Namespace-wide cleanup can drop staging tables used by active uploads, while prefix-based loading can ingest files from failed retry attempts and duplicate events.
2 open issues
7 resolved since last review
Restrict staging cleanup to tables owned by this upload Row-number helper alias can collide with an event property Carry-forward marker alias can collide with a user trait Staging-table cleanup failure can cause duplicate rows on retry Reserved-keyword escaping can select the wrong partition column Retry attempts can leave unacknowledged files in the load folder OSS validation hides actionable local configuration errors
Review effort: Balanced
The OSS conversion no longer sets endPoint and useInternalEndpoint, which decode to the same zero values, and the ODPS client no longer sets request timeouts that the manager's connectionTimeout overrides. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> 🔒 Scanned for secrets using gitleaks 8.28.0
🤖 I have created a release *beep* *boop* --- ## [1.93.0-rc.1](v1.92.0...v1.93.0-rc.1) (2026-11-09) ### Features * **destination:** recognize machine_oauth accounts as oauth ([#7549](#7549)) ([f51e4ca](f51e4ca)) * incremental definitions on the v2 namespace config ([#7487](#7487)) ([ce51e38](ce51e38)) * **processor:** add flag to abort python transformations on deployments that do not offer them ([#7571](#7571)) ([ca85eb2](ca85eb2)) * **processor:** filter http v2 events by destination message types ([#7538](#7538)) ([58fd176](58fd176)) * **processor:** send the workspace id to per-workspace pyt pods ([#7551](#7551)) ([ea33835](ea33835)) * **warehouse:** add maxcompute destination ([#7568](#7568)) ([a64bfd9](a64bfd9)) ### Bug Fixes * **batchrouter:** abort bq stream all events jobs on terminal auth failures ([#7548](#7548)) ([6b7e023](6b7e023)) * bump andybalholm/brotli to v1.2.7 [SEC-759] ([#7525](#7525)) ([6dfe468](6dfe468)) * bump rudder-go-kit to v0.84.3 ([#7547](#7547)) ([355054a](355054a)) * **core:** schema forwarder panics on shutdown ([#7519](#7519)) ([dd61cfc](dd61cfc)) * database connections hang when context is cancelled during a copy ([#7578](#7578)) ([8dae6e3](8dae6e3)) * **jobsdb:** compaction missing pairs after one that doesn't fit ([#7574](#7574)) ([573271b](573271b)) * **jobsdb:** multiconsumer recovery misses a consumer's executing status after another consumer's later status ([#7554](#7554)) ([69b43e0](69b43e0)) * **jobsdb:** old jobs not expiring for every consumer ([#7573](#7573)) ([366f114](366f114)) * **jobsdb:** pickups stalling on status tables with skewed stats ([#7572](#7572)) ([318446f](318446f)) * **jobsdb:** unionjobsdb functions pick the first datasets by table name ([#7558](#7558)) ([e94d6c5](e94d6c5)) * **router:** event order test only counts drained jobs of the last dataset ([#7552](#7552)) ([b0a097a](b0a097a)) * **router:** mask secrets in array-shaped reporting samples ([#7536](#7536)) ([902160f](902160f)) * **warehouse:** hot-reload degraded workspaces without aborting restored uploads ([#7564](#7564)) ([cb98598](cb98598)) * **warehouse:** match deltalake columns case-insensitively ([#7563](#7563)) ([a7d30d7](a7d30d7)) * **warehouse:** migrate snowflake to gosnowflake v2.3.0 ([#7542](#7542)) ([cc09426](cc09426)) * **warehouse:** skip job-creation error log on router shutdown ([#7567](#7567)) ([895367e](895367e)) ### Miscellaneous * **deps:** bump github.com/go-jose/go-jose/v4 from 4.1.4 to 4.1.6 ([#7545](#7545)) ([35ee952](35ee952)) * export only the +Inf bucket for limiter timers ([#7570](#7570)) ([4429472](4429472)) * **router:** add drainReason label to pipeline_processed_events ([#7561](#7561)) ([af0aef8](af0aef8)) * sync release v1.92.0 to main branch ([#7534](#7534)) ([9ab165d](9ab165d)) * **warehouse:** bump sqlconnect-go to v1.37.1 ([#7575](#7575)) ([acdad67](acdad67)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: rudderstack-github-actions[bot] <236995729+rudderstack-github-actions[bot]@users.noreply.github.com>
🤖 I have created a release *beep* *boop* --- ## [1.93.0](v1.92.0...v1.93.0) (2026-11-09) ### Features * **destination:** recognize machine_oauth accounts as oauth ([#7549](#7549)) ([f51e4ca](f51e4ca)) * incremental definitions on the v2 namespace config ([#7487](#7487)) ([ce51e38](ce51e38)) * **processor:** add flag to abort python transformations on deployments that do not offer them ([#7571](#7571)) ([ca85eb2](ca85eb2)) * **processor:** filter http v2 events by destination message types ([#7538](#7538)) ([58fd176](58fd176)) * **processor:** send the workspace id to per-workspace pyt pods ([#7551](#7551)) ([ea33835](ea33835)) * **warehouse:** add maxcompute destination ([#7568](#7568)) ([a64bfd9](a64bfd9)) ### Bug Fixes * **batchrouter:** abort bq stream all events jobs on terminal auth failures ([#7548](#7548)) ([6b7e023](6b7e023)) * bump andybalholm/brotli to v1.2.7 [SEC-759] ([#7525](#7525)) ([6dfe468](6dfe468)) * bump rudder-go-kit to v0.84.3 ([#7547](#7547)) ([355054a](355054a)) * **core:** schema forwarder panics on shutdown ([#7519](#7519)) ([dd61cfc](dd61cfc)) * database connections hang when context is cancelled during a copy ([#7578](#7578)) ([8dae6e3](8dae6e3)) * **jobsdb:** compaction missing pairs after one that doesn't fit ([#7574](#7574)) ([573271b](573271b)) * **jobsdb:** multiconsumer recovery misses a consumer's executing status after another consumer's later status ([#7554](#7554)) ([69b43e0](69b43e0)) * **jobsdb:** old jobs not expiring for every consumer ([#7573](#7573)) ([366f114](366f114)) * **jobsdb:** pickups stalling on status tables with skewed stats ([#7572](#7572)) ([318446f](318446f)) * **jobsdb:** unionjobsdb functions pick the first datasets by table name ([#7558](#7558)) ([e94d6c5](e94d6c5)) * **router:** event order test only counts drained jobs of the last dataset ([#7552](#7552)) ([b0a097a](b0a097a)) * **router:** mask secrets in array-shaped reporting samples ([#7536](#7536)) ([902160f](902160f)) * **warehouse:** hot-reload degraded workspaces without aborting restored uploads ([#7564](#7564)) ([cb98598](cb98598)) * **warehouse:** match deltalake columns case-insensitively ([#7563](#7563)) ([a7d30d7](a7d30d7)) * **warehouse:** migrate snowflake to gosnowflake v2.3.0 ([#7542](#7542)) ([cc09426](cc09426)) * **warehouse:** skip job-creation error log on router shutdown ([#7567](#7567)) ([895367e](895367e)) ### Miscellaneous * **deps:** bump github.com/go-jose/go-jose/v4 from 4.1.4 to 4.1.6 ([#7545](#7545)) ([35ee952](35ee952)) * export only the +Inf bucket for limiter timers ([#7570](#7570)) ([4429472](4429472)) * **router:** add drainReason label to pipeline_processed_events ([#7561](#7561)) ([af0aef8](af0aef8)) * sync release v1.92.0 to main branch ([#7534](#7534)) ([9ab165d](9ab165d)) * **warehouse:** bump sqlconnect-go to v1.37.1 ([#7575](#7575)) ([acdad67](acdad67)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: rudderstack-github-actions[bot] <236995729+rudderstack-github-actions[bot]@users.noreply.github.com>


Description
Add the MAXCOMPUTE warehouse destination with the Alibaba ODPS Go SDK v0.4.26 and customer-owned Alibaba OSS. This implements the server scope of INT-7506 against the MaxCompute LLD.
Design
rudder-go-kitpin includes the releasedALIBABA_OSSprovider.odps.properties.rolearn.TIMESTAMPcolumns and immutable auto-partition expressions. New tables use pipeline-awarepartitionColumn/partitionType; catalog metadata governs existing tables. Ingestion partitions useTRUNC_TIME(uuid_ts, ...).ptwindow. Reconcile deduplicating views before each table load from the upload's warehouse schema, falling back to the catalog, which can lag a newly created schema or table. The validation test load skips the view refresh because its throwaway table gets its view at creation.directoryPathsetting holds the OSS bucket, optionally followed by a directory prefix (bucket/path). The Alibaba OSS config conversion splits it into the bucket and the staging prefix, so the connection test, uploads and LOAD all stage under that directory.oss_access_deniedwhen the OSS policy denies the bucket or its folder path), enforce identifier and column limits before DDL, and log auth mode, validation outcomes and table LOAD counts using existing warehouse metrics and labels.RUDDER_TMPDIRtemp files and the generic upload/download validation path for every warehouse. The shared-code footprint follows the existing BigQuery and Fabric pattern.Verification
directoryPathset tobucket/folderand an OSS policy scoped to that folder, the validation cases passed in AccessKey and role modes, and an incorrect AccessKey secret, an incorrect role ExternalId and a folder outside the policy were rejected at the object-storage step (access_key_authentication,role_assumption,oss_access_denied).make fmtandgo build -mod=readonly ./warehouse/...passed.go test -count=1passed forutils/miscandwarehouse/integrations/maxcompute.0 issues. The commit's Gitleaks scan reportedno leaks found.Known limitations
jsonPaths,MERGE, identity resolution or Stream Tunnel streaming.ptwindow. A LOAD task summary that cannot be parsed leaves the inserted-row count unknown; it does not fail an already committed LOAD.