From 4e509f296db99655704e49232aa574c0f9bd3325 Mon Sep 17 00:00:00 2001 From: xlc <631948983#qq.com> Date: Thu, 21 Nov 2019 11:05:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=98=BE=E7=A4=BA=E4=B8=8D?= =?UTF-8?q?=E6=AD=A3=E7=A1=AE=E7=9A=84=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- chapter2/2.2对战斗机飞行性能进行分析.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/chapter2/2.2对战斗机飞行性能进行分析.md b/chapter2/2.2对战斗机飞行性能进行分析.md index 895d100..51e236b 100644 --- a/chapter2/2.2对战斗机飞行性能进行分析.md +++ b/chapter2/2.2对战斗机飞行性能进行分析.md @@ -98,7 +98,9 @@ spark = SparkSession \ 本例可使用如下表达式将`,`替换为`''`: -`replace(regexp_extract(`最大飞行速度`,'[\\\d,\\\.]+',0),',','')` +``` +replace(regexp_extract(`最大飞行速度`,'[\\\d,\\\.]+',0),',','') +``` 第三步:使用`CAST`函数将字符串转化为`double`用于排序。