You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by "TherChenYang (via GitHub)" <gi...@apache.org> on 2024/05/06 12:57:50 UTC

[PR] Support parsing MySQL LOAD DATA with @ variable [shardingsphere]

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

   Fixes #ISSUSE_ID.
   
   Changes proposed in this pull request:
     - Support parsing MySQL LOAD DATA with @ variable
   
   SQL Case
   ```sql
   LOAD DATA INFILE 'file.txt'
     INTO TABLE t1
     (column1, @var1)
     SET column2 = @var1/100;
   ```
   
   ```sql
   LOAD DATA INFILE 'file.txt'
     INTO TABLE t1
     (column1, @dummy, column2, @dummy, column3);
   ```
   
   ```sql
   EXECUTE STMT USING @skip, @numrows;
   ```
   
   ---
   
   Before committing this PR, I'm sure that I have checked the following options:
   - [x] My code follows the [code of conduct](https://shardingsphere.apache.org/community/en/involved/conduct/code/) of this project.
   - [x] I have self-reviewed the commit code.
   - [x] I have (or in comment I request) added corresponding labels for the pull request.
   - [x] 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.
   - [x] I have added corresponding unit tests for my changes.
   


-- 
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 MySQL LOAD DATA with @ variable [shardingsphere]

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


-- 
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