hubgeter opened a new pull request, #57012:
URL: https://github.com/apache/doris/pull/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.
   
   ### Release note
   
   ### Check List (For Author)
   
   - Test <!-- At least one of them must be included. -->
       - [x] Regression test
       - [ ] Unit Test
       - [ ] Manual test (add detailed scripts or steps below)
       - [ ] No need to test or manual test. Explain why:
           - [ ] This is a refactor/code format and no logic has been changed.
           - [ ] Previous test can cover this change.
           - [ ] No code files have been changed.
           - [ ] Other reason <!-- Add your reason?  -->
   
   - Behavior changed:
       - [ ] No.
       - [x] Yes. <!-- Explain the behavior change -->
   
   - Does this need documentation?
       - [ ] No.
       - [x] Yes. <!-- Add document PR link here. eg: 
https://github.com/apache/doris-website/pull/1214 -->
       i will update doc after the pr merge. 
   ### Check List (For Reviewer who merge this PR)
   
   - [ ] Confirm the release note
   - [ ] Confirm test cases
   - [ ] Confirm document
   - [ ] Add branch pick label <!-- Add branch pick label that this PR should 
merge into -->
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to