Skip to content

Conversation

@github-actions
Copy link
Contributor

Cherry-picked from #57012

…ble. (#57012)

### What problem does this PR solve?
Problem Summary:
In the previous MaxCompute architecture, and its mapping in Doris, the
hierarchy was: `project / database -> table / table`. When creating a
catalog, users needed to specify the property `mc.default.project`,
which indicated the default project to access. In this structure,
executing `SHOW DATABASES` would list other projects.

After MaxCompute introduced the concept of schemas, the hierarchy
changed to: `project / catalog -> schema / database -> table / table`.
Here, the project is at a higher level, and `SHOW DATABASES` should now
list all schemas under the current project. As a result, users need to
create a separate catalog for each project, specifying a different
`mc.default.project` property.
doc:
https://help.aliyun.com/zh/maxcompute/user-guide/schema-related-operations?spm=a2c4g.11186623.help-menu-search-27797.d_0#9d8326491bagj

To maintain compatibility with the old version, a catalog property
`mc.project.schema.table` is introduced:
    - When the property is true, the new architecture is used.
    - When the property is false, the old architecture is used.
@github-actions github-actions bot requested a review from yiguolei as a code owner October 24, 2025 02:49
@Thearas
Copy link
Contributor

Thearas commented Oct 24, 2025

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR.

Please clearly describe your PR:

  1. What problem was fixed (it's best to include specific error reporting information). How it was fixed.
  2. Which behaviors were modified. What was the previous behavior, what is it now, why was it modified, and what possible impacts might there be.
  3. What features were added. Why was this function added?
  4. Which code was refactored and why was this part of the code refactored?
  5. Which functions were optimized and what is the difference before and after the optimization?

@dataroaring dataroaring reopened this Oct 24, 2025
@Thearas
Copy link
Contributor

Thearas commented Oct 24, 2025

run buildall

@yiguolei yiguolei merged commit c0b1168 into branch-4.0 Oct 24, 2025
25 of 27 checks passed
@github-actions github-actions bot deleted the auto-pick-57012-branch-4.0 branch October 24, 2025 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants