-
Notifications
You must be signed in to change notification settings - Fork 279
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add LOAD INTO VALUES #11633
Add LOAD INTO VALUES #11633
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need more tests.
Esp data with ' in it. Make sure quote works. Make sure $XXX$
syntax works.
$XXX$
one line
another line
$XXX$
mysql> load data inline format='csv', data='"1"\n"2"\n$XXX$' into table t1;
Query OK, 3 rows affected (0.01 sec)
mysql> select * from t1;
+-------+
| a |
+-------+
| 1 |
| 2 |
| $XXX$ |
+-------+
3 rows in set (0.01 sec) |
逻辑上load data inline format='csv', data='1\n2\n' into table t1中的data必须是一个满足mysql定义的字符串。就是词法解析阶段定义的一个string @fengttt |
|
没有'吗。。不是下面这样吗?
@fengttt 如果没有'的话,那个可能没那么简单处理,有的话,现在就支持的,我多加一些test case即可。。 |
Provide a quick way to insert data, example is as follows: ```sql load data inline format='csv', data='1\n2\n' into table t1; load data inline format='csv', data=$XXX$ 1 2 $XXX$ into table t1; ``` Approved by: @ouyuanning, @iamlinjunhong, @m-schen, @aunjgr, @heni02, @fengttt
Provide a quick way to insert data, example is as follows: ```sql load data inline format='csv', data='1\n2\n' into table t1; load data inline format='csv', data=$XXX$ 1 2 $XXX$ into table t1; ``` Approved by: @ouyuanning, @iamlinjunhong, @m-schen, @aunjgr, @heni02, @fengttt
Provide a quick way to insert data, example is as follows: ```sql load data inline format='csv', data='1\n2\n' into table t1; load data inline format='csv', data=$XXX$ 1 2 $XXX$ into table t1; ``` Approved by: @ouyuanning, @iamlinjunhong, @m-schen, @aunjgr, @heni02, @fengttt
What type of PR is this?
Which issue(s) this PR fixes:
issue #9955
What this PR does / why we need it:
Provide a quick way to insert data, example is as follows: