This is an automated email from the ASF dual-hosted git repository. pdallig pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/zeppelin.git
The following commit(s) were added to refs/heads/master by this push: new 654c827973 [ZEPPELIN-5898] fix:download csv data error (#4593) 654c827973 is described below commit 654c8279735f2019606f503323a22983c4ce2be7 Author: 诸葛子房 <xiaoqiu201...@163.com> AuthorDate: Tue May 2 14:40:16 2023 +0800 [ZEPPELIN-5898] fix:download csv data error (#4593) Co-authored-by: duanxiaoqiu <duanxiao...@qiyi.com> --- zeppelin-web/src/app/notebook/paragraph/result/result.controller.js | 1 + 1 file changed, 1 insertion(+) diff --git a/zeppelin-web/src/app/notebook/paragraph/result/result.controller.js b/zeppelin-web/src/app/notebook/paragraph/result/result.controller.js index b51d5181ec..d55c51e025 100644 --- a/zeppelin-web/src/app/notebook/paragraph/result/result.controller.js +++ b/zeppelin-web/src/app/notebook/paragraph/result/result.controller.js @@ -895,6 +895,7 @@ function ResultCtrl($scope, $rootScope, $route, $window, $routeParams, $location if (row.hasOwnProperty(index)) { let stringValue = (row[index]).toString(); if (stringValue.indexOf(delimiter) > -1) { + stringValue = stringValue.replaceAll('"', '""'); dsvRow += '"' + stringValue + '"' + delimiter; } else { dsvRow += row[index] + delimiter;