{"id":5745,"date":"2024-10-16T09:01:00","date_gmt":"2024-10-16T01:01:00","guid":{"rendered":"https:\/\/ixyzero.com\/blog\/?p=5745"},"modified":"2024-10-15T20:02:26","modified_gmt":"2024-10-15T12:02:26","slug":"hive-sql%e5%a6%82%e4%bd%95%e6%89%be%e5%87%ba%e8%bf%9e%e7%bb%ad%e6%97%a5%e6%9c%9f%e6%95%b0%e6%8d%ae%e4%b9%8b%e9%97%b4%e7%9a%84%e8%be%83%e5%a4%a7%e6%b3%a2%e5%8a%a8","status":"publish","type":"post","link":"https:\/\/ixyzero.com\/blog\/archives\/5745.html","title":{"rendered":"Hive SQL\u5982\u4f55\u627e\u51fa\u8fde\u7eed\u65e5\u671f\u6570\u636e\u4e4b\u95f4\u7684\u8f83\u5927\u6ce2\u52a8"},"content":{"rendered":"\n<p>=Start=<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u7f18\u7531\uff1a<\/h4>\n\n\n\n<p>\u7528Hive SQL\u505a\u4e00\u4e9b\u5f02\u5e38\u5206\u6790\u65f6\u7ecf\u5e38\u4f1a\u9762\u4e34\u7684\u51e0\u4e2a\u95ee\u9898\uff0c\u6bd4\u5982\uff1a<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Hive SQL\u5982\u4f55\u627e\u51fa\u8fde\u7eed\u65e5\u671f<strong>\u6570\u636e\u7684\u8f83\u5927\u6ce2\u52a8<\/strong>\uff1f<\/li>\n\n\n\n<li>Hive SQL\u5982\u4f55\u627e\u51fa\u6bd4\u524d\u4e00\u6bb5\u65f6\u95f4\u5e73\u5747\u503c\u8981\u9ad8\u7684\u6570\u636e\uff1f<\/li>\n<\/ol>\n\n\n\n<p>\u7b80\u5355\u7684\u8bf4\uff0c\u5c31\u662f\u62ff\u5404\u81ea\u5f53\u5929\u7684\u6570\u636e\u548c\u81ea\u5df1\/\u540c\u7ec4\u4eba\u5458\/\u540c\u7c7b\u4eba\u5458\u6628\u5929\/\u524d\u4e00\u6bb5\u65f6\u95f4\u7684\u6570\u636e\u76f8\u6bd4\u8f83\uff0c\u53d1\u73b0\u6ce2\u52a8\u8f83\u5927\u7684\u60c5\u51b5\uff0c\u7136\u540e\u518d\u8fdb\u884c\u8fdb\u4e00\u6b65\u5206\u6790\u3002\u8fd9\u4e2a\u65f6\u5019\u5c31\u9700\u8981\u7528\u5230 Hive SQL \u7684 lag\/lead <strong>\u7a97\u53e3\u51fd\u6570<\/strong>\u83b7\u53d6\u6628\u5929\/\u524d\u4e00\u6bb5\u65f6\u95f4\u7684\u6570\u636e\uff0c\u7136\u540e\u501f\u52a9 sum\/avg\/max\/percentile \u7b49<strong>\u96c6\u5408\u7edf\u8ba1\u51fd\u6570<\/strong>\u8ba1\u7b97\u51fa\u4e00\u4e2a\u9608\u503c\uff0c\u7136\u540e\u5c06\u5f53\u5929\u7684\u6570\u636e\u4e0e\u9608\u503c\u8fdb\u884c\u6bd4\u8f83\uff0c\u4ece\u800c\u53d1\u73b0\u4e00\u4e9b\u8d85\u51fa\u9608\u503c\u7684\u5f02\u5e38\u60c5\u51b5\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u6b63\u6587\uff1a<\/h4>\n\n\n\n<h5 class=\"wp-block-heading\">\u53c2\u8003\u89e3\u7b54\uff1a<\/h5>\n\n\n\n<pre class=\"wp-block-code\"><code>LAG, LEAD \u51fd\u6570\u7b80\u5355\u4ecb\u7ecd\n\nLag\u548cLead\u5206\u6790\u51fd\u6570\u53ef\u4ee5**\u5728\u540c\u4e00\u6b21\u67e5\u8be2\u4e2d**\u53d6\u51fa\u540c\u4e00\u5b57\u6bb5\u7684\u524dN\u884c\u7684\u6570\u636e\uff08Lag\uff09\u548c\u540eN\u884c\u7684\u6570\u636e\uff08Lead\uff09\u4f5c\u4e3a\u72ec\u7acb\u7684\u5217\u3002\n\n\u5728\u5b9e\u9645\u5e94\u7528\u5f53\u4e2d\uff0c\u82e5\u8981\u7528\u5230\u53d6\u4eca\u5929\u548c\u6628\u5929\u7684\u67d0\u5b57\u6bb5\u5dee\u503c\u65f6\uff0cLag\u548cLead\u51fd\u6570\u7684\u5e94\u7528\u5c31\u663e\u5f97\u5c24\u4e3a\u91cd\u8981\u3002\u5f53\u7136\uff0c\u8fd9\u79cd\u64cd\u4f5c\u53ef\u4ee5\u7528\u8868\u7684\u81ea\u8fde\u63a5\u5b9e\u73b0\uff0c\u4f46\u662fLAG\u548cLEAD\u4e0eleft join\u3001rightjoin \u7b49\u81ea\u8fde\u63a5\u76f8\u6bd4\uff0c**\u6548\u7387\u66f4\u9ad8\uff0cSQL\u66f4\u7b80\u6d01**\u3002\u4e0b\u9762\u6211\u5c31\u5bf9\u8fd9\u4e24\u4e2a\u51fd\u6570\u505a\u4e00\u4e2a\u7b80\u5355\u7684\u4ecb\u7ecd\u3002\n\n\u51fd\u6570\u8bed\u6cd5\nlag(exp_str,offset,defval) over(partion by order by...)\nlead(exp_str,offset,defval) over(partion by ..order by ...)\n\n\u5176\u4e2dexp_str\u662f\u5b57\u6bb5\u540d\u3002\nOffset\u662f\u504f\u79fb\u91cf\uff0c\u5373\u662f\u4e0a1\u4e2a\u6216\u4e0aN\u4e2a\u7684\u503c\uff0c\u5047\u8bbe\u5f53\u524d\u884c\u5728\u8868\u4e2d\u6392\u5728\u7b2c5\u884c\uff0c\u5219offset\u4e3a3\uff0c\u5219\u8868\u793a\u6211\u4eec\u6240\u8981\u627e\u7684\u6570\u636e\u884c\u5c31\u662f\u8868\u4e2d\u7684\u7b2c2\u884c\nDefval\u9ed8\u8ba4\u503c\uff0c\u5f53\u4e24\u4e2a\u51fd\u6570\u53d6\u4e0aN\/\u4e0bN\u4e2a\u503c\uff0c\u5f53\u5728\u8868\u4e2d\u4ece\u5f53\u524d\u884c\u4f4d\u7f6e\u5411\u524d\u6570N\u884c\u5df2\u7ecf\u8d85\u51fa\u4e86\u8868\u7684\u8303\u56f4\u65f6\uff0clag\u51fd\u6570\u5c06defval\u8fd9\u4e2a\u53c2\u6570\u503c\u4f5c\u4e3a\u51fd\u6570\u7684\u8fd4\u56de\u503c\uff0c\u82e5\u6ca1\u6709\u6307\u5b9a\u9ed8\u8ba4\u503c\uff0c\u5219\u8fd4\u56deNULL\uff0c\u90a3\u4e48\u5728\u6570\u5b66\u8fd0\u7b97\u4e2d\uff0c\u603b\u8981\u7ed9\u4e00\u4e2a\u9ed8\u8ba4\u503c\u624d\u4e0d\u4f1a\u51fa\u9519\u3002\n\n\nLAG(col,n,DEFAULT) \u7528\u4e8e\u7edf\u8ba1\u7a97\u53e3\u5185\u5f80\u4e0a\u7b2cn\u884c\u503c\n\u7b2c\u4e00\u4e2a\u53c2\u6570\u4e3a\u5217\u540d\uff0c\u7b2c\u4e8c\u4e2a\u53c2\u6570\u4e3a\u5f80\u4e0a\u7b2cn\u884c\uff08\u53ef\u9009\uff0c\u9ed8\u8ba4\u4e3a1\uff09\uff0c\u7b2c\u4e09\u4e2a\u53c2\u6570\u4e3a\u9ed8\u8ba4\u503c\uff08\u5f53\u5f80\u4e0a\u7b2cn\u884c\u4e3aNULL\u65f6\u5019\uff0c\u53d6\u9ed8\u8ba4\u503c\uff0c\u5982\u4e0d\u6307\u5b9a\uff0c\u5219\u4e3aNULL\uff09\n\nLEAD(col,n,DEFAULT) \u7528\u4e8e\u7edf\u8ba1\u7a97\u53e3\u5185\u5f80\u4e0b\u7b2cn\u884c\u503c(\u4e0eLAG\u76f8\u53cd)\n\u7b2c\u4e00\u4e2a\u53c2\u6570\u4e3a\u5217\u540d\uff0c\u7b2c\u4e8c\u4e2a\u53c2\u6570\u4e3a\u5f80\u4e0b\u7b2cn\u884c\uff08\u53ef\u9009\uff0c\u9ed8\u8ba4\u4e3a1\uff09\uff0c\u7b2c\u4e09\u4e2a\u53c2\u6570\u4e3a\u9ed8\u8ba4\u503c\uff08\u5f53\u5f80\u4e0b\u7b2cn\u884c\u4e3aNULL\u65f6\u5019\uff0c\u53d6\u9ed8\u8ba4\u503c\uff0c\u5982\u4e0d\u6307\u5b9a\uff0c\u5219\u4e3aNULL\uff09\n\nROW_NUMBER() \u2013\u4ece1\u5f00\u59cb\uff0c\u6309\u7167\u987a\u5e8f\uff0c\u751f\u6210\u5206\u7ec4\u5185\u8bb0\u5f55\u7684\u5e8f\u5217\n\nRANK() \u751f\u6210\u6570\u636e\u9879\u5728\u5206\u7ec4\u4e2d\u7684\u6392\u540d\uff0c\u6392\u540d\u76f8\u7b49\u4f1a\u5728\u540d\u6b21\u4e2d\u7559\u4e0b\u7a7a\u4f4d\nDENSE_RANK() \u751f\u6210\u6570\u636e\u9879\u5728\u5206\u7ec4\u4e2d\u7684\u6392\u540d\uff0c\u6392\u540d\u76f8\u7b49\u4f1a\u5728\u540d\u6b21\u4e2d\u4e0d\u4f1a\u7559\u4e0b\u7a7a\u4f4d\n\n\u63d0\u793a\uff1a\u5728\u4f7f\u7528\u5206\u6790\u51fd\u6570\u7684\u8fc7\u7a0b\u4e2d\uff0c\u8981\u7279\u522b\u6ce8\u610fORDER BY\u5b50\u53e5\uff0c\u7528\u7684\u4e0d\u6070\u5f53\uff0c\u7edf\u8ba1\u51fa\u7684\u7ed3\u679c\u5c31\u4e0d\u662f\u4f60\u6240\u671f\u671b\u7684\u3002<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>-- \u539f\u59cb\u8868\u6570\u636e\u6837\u4f8b\uff08\u53ef\u4ee5\u57fa\u4e8e\u66f4\u5e95\u5c42\u6570\u636e\u505a\u7edf\u8ba1\u5f97\u5230\uff09\nselect\nuser_name, date, action_desc, order_id_cnt, cnt\nfrom\nt1\n;\n\nu0001    20241010    \u67e5\u770b\u8be6\u60c5    10  11\nu0001    20241011    \u67e5\u770b\u8be6\u60c5    13  21\nu0001    20241012    \u67e5\u770b\u8be6\u60c5    10  13\nu0001    20241014    \u67e5\u770b\u8be6\u60c5    19  49\nu0001    20241015    \u67e5\u770b\u8be6\u60c5    1   5\nu0001    20241017    \u67e5\u770b\u8be6\u60c5    18  26\nu0001    20241018    \u67e5\u770b\u8be6\u60c5    15  27\nu0001    20241019    \u67e5\u770b\u8be6\u60c5    41  83\nu0001    20241020    \u67e5\u770b\u8be6\u60c5    17  29\nu0002    20241020    \u67e5\u770b\u8be6\u60c5    1   1\nu0002    20241022    \u67e5\u770b\u8be6\u60c5    1   1<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>-- \u7edf\u8ba1\u5404\u8d26\u53f7\u5728\u8fde\u7eed\u65e5\u671f\u4e4b\u95f4\u51fa\u73b0\u8f83\u5927\u6ce2\u52a8\u7684\u65e5\u671f\u548c\u5bf9\u5e94\u6570\u636e\uff08\u5f53\u5929\u6570\u636e\u548c\u524d\u4e00\u5929\/\u524d\u4e00\u6bb5\u65f6\u95f4\u6570\u636e\u505a\u6bd4\u8f83\uff09\n\n-- \u9700\u8981\u6ce8\u610f\u7684\u4e00\u70b9\u662f\uff0c\u8fd9\u91cc\u663e\u793a\u51fa\u6765\u7684\u65e5\u671f\u662f\u51fa\u73b0\u6ce2\u52a8\u7684\u524d\u4e00\u5929\uff0c\u800c\u975e\u6ce2\u52a8\u5f53\u5929\uff0c\u663e\u793a\u51fa\u6765\u662f\u5f533\u670824\u65e5\uff0c\u4f46\u5b9e\u9645\u6ce2\u52a8\u65e5\u671f\u53ef\u80fd\u662f3\u670826\u65e5\uff0c\u56e0\u4e3a3\u670825\u65e5\u6ca1\u6709\u6570\u636e\n-- \u8fd8\u6709\u5c31\u662f\u8fd9\u4e2a\u4e0d\u4f1a\u628a\u8fde\u7eed\u51e0\u5929\u51fa\u73b0\u9ad8\u4f4d\u7684\u60c5\u51b5\u7ed9\u663e\u793a\u51fa\u6765\uff0c\u56e0\u4e3a\u8fd9\u91cc\u5c55\u793a\u7684\u53ea\u662f\u6709\u5267\u70c8\u6ce2\u52a8\u7684\u60c5\u51b5\n\n,abnormal1_spike_cnt as (\n-- \u64cd\u4f5c\u91cf\u9661\u589e-4\u500d-\u548c\u81ea\u5df1\u6628\u5929\u6bd4\nSELECT\nuser_name, action_desc, date\n,'\u64cd\u4f5c\u91cf\u9661\u589e&gt;4\u500d-\u548c\u81ea\u5df1\u6628\u5929\u6bd4' as tag\n,order_id_cnt\n,lag(order_id_cnt) over(partition by user_name,action_desc order by date) as prev_oid_cnt\n,lead(order_id_cnt) over(partition by user_name,action_desc order by date) as next_oid_cnt\n,cnt\n,lag(cnt) over(partition by user_name,action_desc order by date) as prev_cnt\n,lead(cnt) over(partition by user_name,action_desc order by date) as next_cnt\nFROM\nt1\nWHERE\naction_desc like '%\u67e5\u770b%'\nand ((prev_oid_cnt &gt; 39 or order_id_cnt &gt; 199) and abs((order_id_cnt - prev_oid_cnt) \/ prev_oid_cnt) &gt; 4)\n)\n\n,abnormal1_spike_cnt2 as (\n-- \u64cd\u4f5c\u91cf\u9661\u589e-4\u500d-\u548c\u81ea\u5df1\u8fd1\u671f\u5747\u503c\u6bd4\nSELECT\nuser_name, action_desc, date\n,'\u64cd\u4f5c\u91cf\u9661\u589e&gt;4\u500d-\u548c\u81ea\u5df1\u8fd1\u671f\u5747\u503c\u6bd4' as tag\n,order_id_cnt\n,cnt\n,avg(order_id_cnt) over(partition by user_name,action_desc order by date ROWS BETWEEN 5 PRECEDING AND 1 PRECEDING) AS prev_5d_oid_cnt_avg\nFROM\nt1\nWHERE\naction_desc like '%\u67e5\u770b%'\nand order_id_cnt &gt; 39 and order_id_cnt &gt; CAST(prev_5d_oid_cnt_avg AS BIGINT)*4\n)\n\n,abnormal1_spike_cnt3 as (\n-- \u64cd\u4f5c\u91cf\u9661\u589e-2\u500d-\u548c\u540c\u7ec4\u5747\u503c\u6bd4\nSELECT\nuser_name, action_desc, date\n,'\u64cd\u4f5c\u91cf\u9661\u589e&gt;2\u500d-\u548c\u540c\u7ec4\u5747\u503c\u6bd4' as tag\n,order_id_cnt\n,cnt\n,avg(order_id_cnt) over(partition by user_group,action_desc order by date ROWS BETWEEN 5 PRECEDING AND 1 PRECEDING) AS same_group_prev5d_avg\nFROM\nt1\nWHERE\naction_desc like '%\u67e5\u770b%'\nand order_id_cnt &gt; 39 and order_id_cnt &gt; CAST(same_group_prev5d_avg AS BIGINT)*2\n)<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>8 \u96c6\u5408\u7edf\u8ba1\u51fd\u6570\n\u3000\u30008.1\u3001\u4e2a\u6570\u7edf\u8ba1\u51fd\u6570: count\n\u3000\u30008.2\u3001\u603b\u548c\u7edf\u8ba1\u51fd\u6570: sum\n\u3000\u30008.3\u3001\u5e73\u5747\u503c\u7edf\u8ba1\u51fd\u6570: avg\n\u3000\u30008.4\u3001\u6700\u5c0f\u503c\u7edf\u8ba1\u51fd\u6570: min\n\u3000\u30008.5\u3001\u6700\u5927\u503c\u7edf\u8ba1\u51fd\u6570: max\n\u3000\u30008.6\u3001\u975e\u7a7a\u96c6\u5408\u603b\u4f53\u53d8\u91cf\u51fd\u6570: var_pop\n\u3000\u30008.7\u3001\u975e\u7a7a\u96c6\u5408\u6837\u672c\u53d8\u91cf\u51fd\u6570: var_samp\n\u3000\u30008.8\u3001\u603b\u4f53\u6807\u51c6\u504f\u79bb\u51fd\u6570: stddev_pop\n\u3000\u30008.9\u3001\u6837\u672c\u6807\u51c6\u504f\u79bb\u51fd\u6570: stddev_samp\n\u3000\u30008.10\u3001\u4e2d\u4f4d\u6570\u51fd\u6570: percentile\n\u3000\u30008.11\u3001\u4e2d\u4f4d\u6570\u51fd\u6570: percentile\n\u3000\u30008.12\u3001\u8fd1\u4f3c\u4e2d\u4f4d\u6570\u51fd\u6570: percentile_approx\n\u3000\u30008.13\u3001\u8fd1\u4f3c\u4e2d\u4f4d\u6570\u51fd\u6570: percentile_approx\n\u3000\u30008.14\u3001\u76f4\u65b9\u56fe: histogram_numeric<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>-- \u5feb\u901f\u9020\u6570\u636e\uff0c\u7528\u4e8e\u6d4b\u8bd5 percentile \u51fd\u6570\u7684\u6548\u679c\u548c\u51c6\u786e\u6027\u662f\u5426\u7b26\u5408\u9884\u671f\nwith t1 as (\n  select '2024-01-01' as dt_start, '2024-10-12' as dt_end\n)\n,t2 as (\nselect\ndate_add(to_date(dt_start), idx) as dt, idx\nfrom t1\nlateral view posexplode(split(space(datediff(t1.dt_end,t1.dt_start)),' ')) pi as idx, empty\n)\n\nselect\nmin(idx) as idx_min\n,avg(idx) as idx_avg\n,max(idx) as idx_max\n,percentile(idx,0.9) as idx_p90\n,percentile(idx,0.99) as idx_p99\nfrom\nt2\n\n\/*\n-- 0-285\n0\n142.5\n285\n256.5\n282.15\n*\/\n\n\u767e\u5206\u4f4d\u6570\u662f\u4e00\u4e2a\u8868\u793a\u6570\u636e\u5206\u5e03\u7684\u7edf\u8ba1\u91cf\uff0c\u5176\u4e2dp\u767e\u5206\u4f4d\u6570\u662f\u6307\u5c0f\u4e8e\u8be5\u6570\u503c\u7684\u6570\u636e\u5360\u6240\u6709\u6570\u636e\u7684\u6bd4\u4f8b\u4e3ap%\u3002\u56e0\u6b64\uff0c90%\u767e\u5206\u4f4d\u6570\u610f\u5473\u774090%\u7684\u6570\u636e\u90fd\u5c0f\u4e8e\u6216\u7b49\u4e8e\u8fd9\u4e2a\u6570\u503c\u3002<\/code><\/pre>\n\n\n\n<h5 class=\"wp-block-heading\">\u53c2\u8003\u94fe\u63a5\uff1a<\/h5>\n\n\n\n<p>Built-in Aggregate Functions (UDAF)<br><a href=\"https:\/\/cwiki.apache.org\/confluence\/display\/Hive\/LanguageManual+UDF#LanguageManualUDF-Built-inAggregateFunctions(UDAF)\">https:\/\/cwiki.apache.org\/confluence\/display\/Hive\/LanguageManual+UDF#LanguageManualUDF-Built-inAggregateFunctions(UDAF)<\/a><\/p>\n\n\n\n<p>Windowing function in Hive<br><a href=\"https:\/\/stackoverflow.com\/questions\/55909029\/windowing-function-in-hive\">https:\/\/stackoverflow.com\/questions\/55909029\/windowing-function-in-hive<\/a><\/p>\n\n\n\n<p>HIVE_HIVE\u51fd\u6570_\u7a97\u53e3\u51fd\u6570_LAG()\/LEAD() \u8be6\u89e3<br><a href=\"https:\/\/blog.csdn.net\/u010003835\/article\/details\/106739353\">https:\/\/blog.csdn.net\/u010003835\/article\/details\/106739353<\/a><\/p>\n\n\n\n<p>Hive\u5206\u6790\u7a97\u53e3\u51fd\u6570(\u56db) LAG,LEAD,FIRST_VALUE,LAST_VALUE<br><a href=\"http:\/\/lxw1234.com\/archives\/2015\/04\/190.htm\">http:\/\/lxw1234.com\/archives\/2015\/04\/190.htm<\/a><\/p>\n\n\n\n<p>\u6807\u7b7e\uff1ahive\u5206\u6790\u51fd\u6570<br><a href=\"http:\/\/lxw1234.com\/archives\/tag\/hive-window-functions\">http:\/\/lxw1234.com\/archives\/tag\/hive-window-functions<\/a><\/p>\n\n\n\n<p>Hive \u5206\u6790\u51fd\u6570lead\u3001lag\u5b9e\u4f8b\u5e94\u7528<br><a href=\"https:\/\/developer.aliyun.com\/article\/903855\">https:\/\/developer.aliyun.com\/article\/903855<\/a><\/p>\n\n\n\n<p>Hive \u5206\u6790\u51fd\u6570lead\u3001lag\u5b9e\u4f8b\u5e94\u7528<br><a href=\"https:\/\/blog.csdn.net\/kent7306\/article\/details\/50441967\">https:\/\/blog.csdn.net\/kent7306\/article\/details\/50441967<\/a><\/p>\n\n\n\n<p>hive\u5f00\u7a97\u51fd\u6570-lag\u548clead\u51fd\u6570<br><a href=\"https:\/\/cloud.tencent.com\/developer\/article\/2377588\">https:\/\/cloud.tencent.com\/developer\/article\/2377588<\/a><\/p>\n\n\n\n<p>\u901a\u4e49\u5343\u95ee<br><a href=\"https:\/\/tongyi.aliyun.com\/qianwen\/\">https:\/\/tongyi.aliyun.com\/qianwen\/<\/a><\/p>\n\n\n\n<p>=END=<\/p>\n","protected":false},"excerpt":{"rendered":"<p>=Start= \u7f18\u7531\uff1a \u7528Hive SQL\u505a\u4e00\u4e9b\u5f02\u5e38\u5206\u6790\u65f6\u7ecf\u5e38\u4f1a\u9762\u4e34\u7684\u51e0\u4e2a\u95ee\u9898\uff0c\u6bd4\u5982\uff1a \u7b80\u5355\u7684\u8bf4\uff0c\u5c31\u662f\u62ff\u5404\u81ea\u5f53 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14,23,7],"tags":[2345,1261,659,2342,2343,1262,2344,963,2348,2341,2347,1373,2346,2100],"class_list":["post-5745","post","type-post","status-publish","format-standard","hentry","category-database","category-knowledgebase-2","category-programing","tag-avg","tag-hive","tag-lag","tag-lead","tag-percentile","tag-sql","tag-2344","tag-963","tag-2348","tag-2341","tag-2347","tag-1373","tag-2346","tag-2100"],"views":2179,"_links":{"self":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts\/5745","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/comments?post=5745"}],"version-history":[{"count":1,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts\/5745\/revisions"}],"predecessor-version":[{"id":5746,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts\/5745\/revisions\/5746"}],"wp:attachment":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/media?parent=5745"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/categories?post=5745"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/tags?post=5745"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}