From 57096685f89939a5b443105b160b198c85a81064 Mon Sep 17 00:00:00 2001 From: zjp Date: Thu, 2 Dec 2021 00:45:46 +0800 Subject: [PATCH] =?UTF-8?q?[Release]=20fix=20#17=20=E3=80=90=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E8=87=B4=E5=91=BD=E9=94=99=E8=AF=AF=E3=80=91=E5=81=9C?= =?UTF-8?q?=E7=89=8C=E7=BB=93=E6=9D=9F=E5=90=8E=E5=A4=8D=E6=9D=83=E5=9B=A0?= =?UTF-8?q?=E5=AD=90=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 4 ++-- rustdx-cmd/Cargo.toml | 2 +- rustdx-cmd/src/io.rs | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 557abaf..04e027b 100644 --- a/README.md +++ b/README.md @@ -75,8 +75,8 @@ $ clickhouse-client --query "INSERT INTO rustdx.factor FORMAT CSVWithNames" < ea SELECT yesterday() AS date, code, - last_value(close), - last_value(factor) + last_value(close) AS close, + last_value(factor) AS factor FROM rustdx.factor GROUP BY code INTO OUTFILE 'factor.csv' diff --git a/rustdx-cmd/Cargo.toml b/rustdx-cmd/Cargo.toml index ac92eec..d3f5c40 100644 --- a/rustdx-cmd/Cargo.toml +++ b/rustdx-cmd/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rustdx-cmd" -version = "0.1.4" +version = "0.1.5" edition = "2018" license = "MIT" build = "build.rs" diff --git a/rustdx-cmd/src/io.rs b/rustdx-cmd/src/io.rs index d6a678a..00dd237 100644 --- a/rustdx-cmd/src/io.rs +++ b/rustdx-cmd/src/io.rs @@ -237,8 +237,8 @@ fn clickhouse_factor_csv(table: &str) -> Previous { &format!("SELECT yesterday() AS date, code, - last_value(close), - last_value(factor) + last_value(close) AS close, + last_value(factor) AS factor FROM {0} GROUP BY code INTO OUTFILE 'factor.csv'