You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by "ccxxxyy (via GitHub)" <gi...@apache.org> on 2026/03/07 05:11:24 UTC

[PR] Support parsing Doris MYSQL LOAD syntax [shardingsphere]

ccxxxyy opened a new pull request, #38368:
URL: https://github.com/apache/shardingsphere/pull/38368

   for https://github.com/apache/shardingsphere/issues/31459
   
   Changes proposed in this pull request:
     -
   
   ---
   
   Before committing this PR, I'm sure that I have checked the following options:
   - [ ] My code follows the [code of conduct](https://shardingsphere.apache.org/community/en/involved/conduct/code/) of this project.
   - [ ] I have self-reviewed the commit code.
   - [ ] I have (or in comment I request) added corresponding labels for the pull request.
   - [ ] I have passed maven check locally : `./mvnw clean install -B -T1C -Dmaven.javadoc.skip -Dmaven.jacoco.skip -e`.
   - [ ] I have made corresponding changes to the documentation.
   - [ ] I have added corresponding unit tests for my changes.
   - [ ] I have updated the Release Notes of the current development version. For more details, see [Update Release Note](https://shardingsphere.apache.org/community/en/involved/contribute/contributor/)
   


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Support parsing Doris MYSQL LOAD syntax [shardingsphere]

Posted by "ccxxxyy (via GitHub)" <gi...@apache.org>.
ccxxxyy commented on PR #38368:
URL: https://github.com/apache/shardingsphere/pull/38368#issuecomment-4019111975

   @terrymanu Hi! I have made the revisions according to your guidance. I would greatly appreciate it if you could take a moment to review them when you have time. Below is a summary of the changes in this commit:
   
   - Fixed the defect in `MySQLLoadDataStatementBinder.java.`
   
   - Added the test case with sql-case-id="doris_load_data_with_fields_binder" and corresponding assertion in `test/it/binder/src/test/resources/sqls/dml/load-data.xml` and `test/it/binder/src/test/resources/cases/dml/load-data.xml` to verify the fix.
   
   Re-ran `InternalDorisParserIT` and `DorisBinderIT`. The assertion logic takes effect and all assertions pass.
   
   Please review the changes again at your convenience. Thank you for your correction and time!


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Support parsing Doris MYSQL LOAD syntax [shardingsphere]

Posted by "terrymanu (via GitHub)" <gi...@apache.org>.
terrymanu merged PR #38368:
URL: https://github.com/apache/shardingsphere/pull/38368


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Support parsing Doris MYSQL LOAD syntax [shardingsphere]

Posted by "ccxxxyy (via GitHub)" <gi...@apache.org>.
ccxxxyy commented on PR #38368:
URL: https://github.com/apache/shardingsphere/pull/38368#issuecomment-4016663081

   @terrymanu Hi! Thank you very much for your corrections. I have fixed the issues as required and would greatly appreciate it if you could take the time to review the changes. Below is a summary of the modifications in this commit:
   
   - Fixed the issues with `assertProperties` in `DorisLoadDataStatementAssert.java`
   
   - Addressed the defects in `loadDataProperty` within `DMLStatement.g4`
   
   Thanks again for your feedback and time!


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Support parsing Doris MYSQL LOAD syntax [shardingsphere]

Posted by "ccxxxyy (via GitHub)" <gi...@apache.org>.
ccxxxyy commented on PR #38368:
URL: https://github.com/apache/shardingsphere/pull/38368#issuecomment-4018435987

   @terrymanu Hi! Thank you very much for your reply and guidance. I would greatly appreciate it if you could take a moment to review the changes when you have time. Below is a summary of the modifications in this commit:
   
   - Moved the logic from `DorisLoadDataStatement`, `DorisLoadDataStatementAssert`, and `DorisLoadDataStatementTestCase` to `MySQLLoadDataStatement`, `MySQLLoadDataStatementAssert`, and `MySQLLoadDataStatementTestCase`, then deleted the original three Doris-related classes.
   
   - Restored the usage of MySQLLoadDataStatement in `DorisDMLStatementVisitor.java`
   
   - Updated the tag from </doris-load-data> to the correct </load-data> for Doris assertions in `src/main/resources/case/dml/load-data.xml`, making the assertion logic take effect and all assertion tests pass.
   
   - Fixed the Doris assertions in `test/it/binder/src/test/resources/cases/dml/load-data.xml` and added the necessary <table-bound> tags, so that the assertion tests pass and the original binder logic is restored.
   
   Please review the changes at your convenience. Thank you again for your corrections and time!


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org