Skip to content

Commit

Permalink
fix get_physical_plan issue
Browse files Browse the repository at this point in the history
  • Loading branch information
weiting-chen committed Apr 29, 2022
1 parent 4a056a4 commit d7c1ac4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tools/sparklog.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -692,9 +692,9 @@
" for c in keys:\n",
" v=columns[c]\n",
" if v.startswith(\"array\") or v.startswith(\"map\") or v.startswith(\"struct\"):\n",
" s[1]=re.sub(c, '<span style=\"color:red;background-color:yellow\">'+html.escape(v)+\"</span>\",s[1])\n",
" s[1]=re.sub(re.escape(c), '<span style=\"color:red;background-color:yellow\">'+html.escape(v)+\"</span>\",s[1])\n",
" else:\n",
" s[1]=re.sub(c, \"<font color=#33cc33>\"+html.escape(v)+\"</font>\",s[1])\n",
" s[1]=re.sub(re.escape(c), \"<font color=#33cc33>\"+html.escape(v)+\"</font>\",s[1])\n",
"\n",
"\n",
" htmls=['''<table style=\"table-layout:fixed;max-width: 100%;\">''']\n",
Expand Down Expand Up @@ -743,9 +743,9 @@
" for c in keys:\n",
" v=columns[c]\n",
" if v.startswith(\"array\") or v.startswith(\"map\") or v.startswith(\"struct\"):\n",
" f[idx]=re.sub(c, '<span style=\"color:red;background-color:yellow\">'+html.escape(v)+\"</span>\",f[idx])\n",
" f[idx]=re.sub(re.escape(c), '<span style=\"color:red;background-color:yellow\">'+html.escape(v)+\"</span>\",f[idx])\n",
" else:\n",
" f[idx]=re.sub(c, \"<font color=#33cc33>\"+html.escape(v)+\"</font>\",f[idx])\n",
" f[idx]=re.sub(re.escape(c), \"<font color=#33cc33>\"+html.escape(v)+\"</font>\",f[idx])\n",
" funchtml=\"<table>\"\n",
" for k,v in functions.items():\n",
" if shownops is not None:\n",
Expand Down

0 comments on commit d7c1ac4

Please sign in to comment.