Uh oh!
There was an error while loading. Please reload this page.
[ZEPPELIN-1486] Allow configuring whether shown values will be trimmed - #1458
[ZEPPELIN-1486] Allow configuring whether shown values will be trimmed#1458mispecto wants to merge 1 commit into
Conversation
589acda to
e007395CompareHi @spektom. Thanks for your contribution :) You said
But it seems there is no docs file change. The below code needs to be added here as well. |
e007395 to
3321e18Comparemispecto
commented
Sep 27, 2016
@AhyoungRyu Added, thanks for pointing it out to me. |
r-kamath
commented
Oct 4, 2016
@spektom thanks for the improvement. Can you also update |
mispecto
commented
Oct 4, 2016
@r-kamath I've added documentation to the |
| REM set ZEPPELIN_SPARK_CONCURRENTSQL REM Execute multiple SQL concurrently if set true. false by default. | ||
| REM set ZEPPELIN_SPARK_IMPORTIMPLICIT REM Import implicits, UDF collection, and sql if set true. true by default. | ||
| REM set ZEPPELIN_SPARK_MAXRESULT REM Max number of Spark SQL result to display. 1000 by default. | ||
| REM set ZEPPELIN_SPARK_TRUNCATERESULT REM Truncate long strings in SQL display. false by default. |
There was a problem hiding this comment.
It looks like Livy only feature for now. How about removing env here and .sh?
There was a problem hiding this comment.
Agree to remove it from env.sh and site.xml, env.sh and site.xml is for zeppelin server rather than interpreter.
jongyoul
commented
Oct 5, 2016
@spektom I agree with you not to add zeppelin-env.* because it depends on Live only. |
| "zeppelin.livy.spark.sql.truncateResult": { | ||
| "envName": "ZEPPELIN_LIVY_TRUNCATERESULT", | ||
| "propertyName": "zeppelin.livy.spark.sql.truncateResult", | ||
| "defaultValue": "false", |
There was a problem hiding this comment.
Will it make more sense to set true by default ? As it is truncated in spark by default.
| property.get("zeppelin.livy.spark.sql.maxResult") + ")", | ||
| property.get("zeppelin.livy.spark.sql.maxResult") + "," + | ||
| property.get("zeppelin.livy.spark.sql.truncateResult") + ")", | ||
| interpreterContext, userSessionMap); |
There was a problem hiding this comment.
What error will be displayed in frontend if I set invalid value for zeppelin.livy.spark.sql.truncateResult ?
There was a problem hiding this comment.
There will be an exception thrown. I don't think every property must be checked for validity in an explicit way.
There was a problem hiding this comment.
What kind of exception do you see in frontend ? If user set an invalid value like 'F' and if the exception in frontend doesn't imply that, then it might be better to verify the property in method open(), otherwise it is hard to figure out what is wrong.
There was a problem hiding this comment.
I don't see whether zeppelin.livy.spark.sql.maxResult or any other property is validated in any place. What's special about zeppelin.livy.spark.sql.truncateResult? Moreover, in my opinion, if user doesn't read documentation, and sets something completely wrong - it is his own problem.
There was a problem hiding this comment.
@spektom I hate to be the bearer of bad news but Zeppelin is being adopted by many Enterprises and unforuantely in most cases I agree that it's the users problem. But if you are going to be committing to software that is going to be used by large enterprises then I would expect validation to occur. I am actually going to raise these issues with my Hadoop vendor.
| </tr> | ||
| <tr> | ||
| <td>zeppelin.livy.spark.sql.truncateResult</td> | ||
| <td>false</td> |
Are you trying to say that people working for enterprise companies require
|
gss2002
commented
Oct 14, 2016
Well we will just agree to disagree |
gss2002
commented
Oct 14, 2016
Also input validation is secure java coding best practice regardless.. http://www.oracle.com/technetwork/java/seccodeguide-139067.html#5 |
close#83close#86close#125close#133close#139close#146close#193close#203close#246close#262close#264close#273close#291close#299close#320close#347close#389close#413close#423close#543close#560close#658close#670close#728close#765close#777close#782close#783close#812close#822close#841close#843close#878close#884close#918close#989close#1076close#1135close#1187close#1231close#1304close#1316close#1361close#1385close#1390close#1414close#1422close#1425close#1447close#1458close#1466close#1485close#1492close#1495close#1497close#1536close#1545close#1561close#1577close#1600close#1603close#1678close#1695close#1739close#1748close#1765close#1767close#1776close#1783close#1799
What is this PR for?
This patch improves Livy interpreter behavior: it allows configuring whether shown values will be trimmed or not.
What type of PR is it?
Improvement
Todos
What is the Jira issue?
https://issues.apache.org/jira/browse/ZEPPELIN-1486
How should this be tested?
zeppelin.livy.spark.sql.truncateResulttotrueScreenshots (if appropriate)
Questions:
zeppelin.livy.spark.sql.truncateResultoption.