Skip to content
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

druid解析语法错误的load data语句成功 #3396

Open
PanternBao opened this issue Aug 9, 2019 · 0 comments
Open

druid解析语法错误的load data语句成功 #3396

PanternBao opened this issue Aug 9, 2019 · 0 comments

Comments

@PanternBao
Copy link

  • druid version:
    1.1.14
  • detail:
    使用druid解析以下语法错误的 sq l语句:
  1. load data infile "/tmp/test.txt" into table sharding_four (ID,FirstName,LastName,Department,Salary) FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' LINES TERMINNATED BY '\n';
  2. load data infile "/tmp/test.txt" into table sharding_four FIELD TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' LINES TERMINNATED BY '\n';

期望druid解析出错,而不是解析成功,返回错误结果
实际解析后的语句:

  1. load data infile "/tmp/test.txt" into table sharding_four (ID,FirstName,LastName,Department,Salary);
  2. load data infile "/tmp/test.txt" into table sharding_four';
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

No branches or pull requests

1 participant