-
Notifications
You must be signed in to change notification settings - Fork 2.8k
ZEPPELIN-830 Improve table display to handle large data #858
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
Conversation
|
@r-kamath build fails with Looks like this require selenium test update. |
|
I passed the build with no problems and functionality is working very well. |
|
#6 and #761 are using jQuery Datatables I've done a basic performance test with 20000x80 rows and columns data and few paragraphs with a subset. |
|
We would need export to file feature which seems like is not supported in the free Handsontable version? |
|
Right, it is supported only in pro ver. Handsontable's Export feature is in front-end. IMHO export should be a backend feature and will be a good addition to our Notebook REST api. |
| <script src="bower_components/zeroclipboard/dist/ZeroClipboard.js"></script> | ||
| <script src="bower_components/moment/moment.js"></script> | ||
| <script src="bower_components/pikaday/pikaday.js"></script> | ||
| <script src="bower_components/handsontable/dist/handsontable.js"></script> |
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.
pickaday.js, moment.js, ZeroClipboard.js, pikaday.css are they required to use handsontable?
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.
ZeroClipboard and pikaday.js are not required, need to see how to remove them from the build.
As of now moment.js is used only for number formatting (7bb508e)
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.
I was wrong. All three deps are required. Use without pikaday #2841
|
@Leemoonsoo that's in the todo list. Can be done either in FE or in server. Thoughts? |
|
@Leemoonsoo |
|
%html rendering is working nicely! If pickaday.js, moment.js, ZeroClipboard.js are required to use handsontable, they also need to be in 'zeppelin-distribution/src/bin_license/LICENSE' |
|
@Leemoonsoo license doc updated and rebased 2e422ea 4fbb22b |
|
LGTM! nice improvement 👍 |
|
@r-kamath Are there any more works left for unchecked todo item 'UI fixes', in the description of this PR? |
|
@Leemoonsoo the only pending item is the sort header arrow style. Should we try something more stylish ? |
|
Arrow style looks fine. I think it's good to be merged! |
|
@Leemoonsoo cool. I have checked the 'UI fixes'. thanks |
|
Last CI test failure is unrelated to the change. LGTM. |
|
does this PR change the export to CSV capability? |
|
@felixcheung No, There is still no export to CSV feature |
|
@felixcheung this PR is only for improving table performance. CSV/TSV export is in #725 and #714 |
|
@r-kamath can you resolve branch conflict. |
|
@prabhjyotsingh conflict resolved f13ba91 |
|
Thanks @r-kamath for contributing towards front-end performance. |
|
Anyway to not have:
included when installing Handsontable? |
|
@r-kamath https://github.com/handsontable/hot-builder |
|
Not sure if we can avoid those dependencies by choosing hot-builder! |
|
I would agree with @r-kamath, as long as those dependencies are not been written in bower.json we should be ok. |
|
I don't get why its not important to have unused additional dependencies in our build, as long as its not in bower.json, maybe somebody can explain more. |
|
@corneadoug Again, this is an issue on handsontable please follow these links. Those entries in index.html should disappear when handsontable team fix the issue. Also it is included in the Improvement-suggestions section. More details here : https://github.com/handsontable/handsontable @Leemoonsoo @prabhjyotsingh what say? |
|
@r-kamath I don't want to make this PR wait forever. Since Handsontable seems to be helpful in term of performances, it might still be worth it to have those unnecessary dependencies. However, after this PR, we should try to find a way to get rid of them somehow (by keeping an eye for a fix in handsontable, or making a PR there, or even trying their hotbuilder) |
|
@corneadoug I'm following up on handsontable repo. Will find some time to explore for a potential PR. |
|
Merging if there is no more discussions |
|
Great Job. I have a silly question, how do you debug your code in zeppelin, I mean , what IDE do you use and how you make breakpoint or sth like that ... |
|
@yantaiv Better ask that in the mailing list, you would get more answers |
|
Thanks for the wonderful commit. |
…nse file. ### What is this PR for? <Jquery.floatThead> is no longer used. But the license document contains the appropriate information. Due to the following PR <jquery.floatThead> was removed. Resulting in a using < HandsonTable >. #858 ### What type of PR is it? Documentation ### What is the Jira issue? https://issues.apache.org/jira/browse/ZEPPELIN-953 ### Questions: * Does the licenses files need update? no * Is there breaking changes for older versions? no * Does this needs documentation? no Author: CloverHearts <cloverheartsdev@gmail.com> Closes #960 from cloverhearts/ZEPPELIN-953 and squashes the following commits: d9ac1f1 [CloverHearts] Merge branch 'master' into ZEPPELIN-953 5cddba6 [CloverHearts] deleted jquery.floatThead at license file
|
@gauravkumar37 handled in #973 |
### What is this PR for? This PR fixes a few minor issues from the recent introduction of Handsontable for table rendering (#858): * Render up to 5 digits after decimal point instead of always rounding to integers * Allow visual selection of table cells (for copy) * Default to text renderer instead of numeric renderer ### What type of PR is it? Bug Fix, Improvement ### Todos ### What is the Jira issue? * https://issues.apache.org/jira/browse/ZEPPELIN-973 * https://issues.apache.org/jira/browse/ZEPPELIN-954 ### How should this be tested? Output some rows with floating point numbers and render them in a table. ### Screenshots (if appropriate) ### Questions: * Does the licenses files need update? No * Is there breaking changes for older versions? No * Does this needs documentation? No Author: Hao Xia <hao@optimizely.com> Closes #973 from jasonxh/hao/render-table and squashes the following commits: a663833 [Hao Xia] Remove cell selection. Allow visually selecting table text. 7bc85b5 [Hao Xia] Table rendering improvements: * Render up to 5 digits after decimal point * Allow visual selection of table cells * Default to text renderer




What is this PR for?
This is an improvement for table display. By using Handsontable we can load and display more data in paragraphs. Tested using sample tabular data consisting 10000x80 cells
What type of PR is it?
Improvement
Todos
What is the Jira issue?
How should this be tested?
TODO : test cases to follow
Screenshots (if appropriate)
Questions: