From ce303f5c7e1c9175e831293cb60c7c08e9ef55fd Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Mon, 10 Aug 2020 11:25:40 -0700 Subject: [PATCH] update node for mint 14.x (#10236) --- mint/preinstall.sh | 2 +- mint/run/core/s3select/csv.py | 4 ++-- mint/run/core/s3select/sql_ops.py | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/mint/preinstall.sh b/mint/preinstall.sh index c73df6d8f..4ac2de495 100755 --- a/mint/preinstall.sh +++ b/mint/preinstall.sh @@ -19,7 +19,7 @@ export APT="apt --quiet --yes" export WGET="wget --quiet --no-check-certificate" # install nodejs source list -if ! $WGET --output-document=- https://deb.nodesource.com/setup_13.x | bash -; then +if ! $WGET --output-document=- https://deb.nodesource.com/setup_14.x | bash -; then echo "unable to set nodejs repository" exit 1 fi diff --git a/mint/run/core/s3select/csv.py b/mint/run/core/s3select/csv.py index b34ba2afc..298415484 100644 --- a/mint/run/core/s3select/csv.py +++ b/mint/run/core/s3select/csv.py @@ -20,7 +20,7 @@ import os from minio import Minio from minio.select.options import (CSVInput, CSVOutput, InputSerialization, - JsonOutput, OutputSerialization, + JSONOutput, OutputSerialization, RequestProgress, SelectObjectOptions) from utils import * @@ -107,7 +107,7 @@ def test_csv_input_custom_quote_char(client, log_output): AllowQuotedRecordDelimiter="FALSE",), ), output_serialization=OutputSerialization( - json=JsonOutput( + json=JSONOutput( RecordDelimiter="\n", ) ), diff --git a/mint/run/core/s3select/sql_ops.py b/mint/run/core/s3select/sql_ops.py index bf3c0bd84..8b2099a21 100644 --- a/mint/run/core/s3select/sql_ops.py +++ b/mint/run/core/s3select/sql_ops.py @@ -19,7 +19,7 @@ import io from datetime import datetime from minio.select.options import (CSVInput, CSVOutput, InputSerialization, - JSONInput, OutputSerialization, + JSONInput, JSONOutput, OutputSerialization, RequestProgress, SelectObjectOptions) from utils import generate_bucket_name, generate_object_name @@ -394,7 +394,7 @@ def test_sql_select_json(client, log_output): ] input_serialization = InputSerialization(json=JSONInput(Type="DOCUMENT")) - output_serialization = OutputSerialization(json=JsonOutput()) + output_serialization = OutputSerialization(json=JSONOutput()) try: test_sql_expressions_custom_input_output(client, json_testcontent, input_serialization, output_serialization, tests, log_output)