-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
include two patch,the one is fix limit overflow default size though set not limit,and another fix hive-plugin return data don't support \t #858
Conversation
@@ -0,0 +1,53 @@ | |||
package com.webank.wedatasphere.linkis.engineplugin.hive.serde; |
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 to add license
if (limitNum > defaultLimit) throw new IllegalArgumentException("We at most allowed to limit " + defaultLimit + ", but your SQL has been over the max rows.") | ||
} | ||
!hasLimit | ||
code.matches("limit\\s+\\d+\\s*;?") |
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.
It is recommended to delete this code block
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.
LGTM.
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.
LGTM.
What is the purpose of the change
1、commit id 3d86d31(fix limit overflow defaultsize)
issue:当SQL指定limit 大于5000时任务执行失败(#842:https://github.com/WeBankFinTech/Linkis/issues/842)
limit num over default size(wds.linkis.engine.default.limit=5000),though sql include ide.engine.no.limit.allow set no limit
for example:
select * from test limit 10000 --set ide.engine.no.limit.allow=true;
throw error for more than 5000
Brief change log
Verifying this change
delete the function isSelectCmdNoLimit redundancy check
2、commit id 29693a9 and 7b43cf8(fix hive plugin return data incluing \t)
issue:#855
when use hive plugin to query,the return data don't support including \t
add:.../serde/CustomerDelimitedJSONSerDe.java
add:.../hive/serde/LazySimpleSerDe2.java
change: .../hive/conf/HiveEngineConfiguration.scala
change:.../hive/creation/HiveEngineConnFactory.scala
change:.../executor/HiveEngineConnExecutor.scala