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

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

Merged
merged 7 commits into from
Jul 15, 2021

Conversation

xiaojie19852006
Copy link
Contributor

@xiaojie19852006 xiaojie19852006 commented Jul 13, 2021

What is the purpose of the change

1、commit id 3d86d31(fix limit overflow defaultsize)
issue:当SQL指定limit 大于5000时任务执行失败(#842https://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

  • change com.webank.wedatasphere.linkis.governance.common.paser.CodeParser

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

@xiaojie19852006 xiaojie19852006 changed the title fix limit overflow defaultsize though set not limit 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 Jul 13, 2021
@@ -0,0 +1,53 @@
package com.webank.wedatasphere.linkis.engineplugin.hive.serde;
Copy link
Contributor

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*;?")
Copy link
Contributor

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

Copy link
Contributor

@peacewong peacewong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Copy link
Contributor

@peacewong peacewong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@peacewong peacewong merged commit 4b98402 into apache:dev-1.0.1 Jul 15, 2021
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

Successfully merging this pull request may close these issues.

2 participants