From 4f494d4d92d15f088c54019fbb8a594024bfcf2c Mon Sep 17 00:00:00 2001 From: Xiaodong DENG Date: Sun, 3 Jan 2021 15:56:50 +0100 Subject: [PATCH] Fix few typos (#13450) --- airflow/models/baseoperator.py | 2 +- airflow/providers/apache/hive/hooks/hive.py | 2 +- scripts/in_container/run_ci_tests.sh | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/airflow/models/baseoperator.py b/airflow/models/baseoperator.py index 86d70b06658cb..2e4e785a22e85 100644 --- a/airflow/models/baseoperator.py +++ b/airflow/models/baseoperator.py @@ -1202,7 +1202,7 @@ def _set_relatives( raise AirflowException( "Tried to create relationships between tasks that don't have " "DAGs yet. Set the DAG for at least one " - "task and try again: {}".format([self] + task_list) + "task and try again: {}".format([self] + task_list) ) if dag and not self.has_dag(): diff --git a/airflow/providers/apache/hive/hooks/hive.py b/airflow/providers/apache/hive/hooks/hive.py index a13b3647ce4a1..ab7b7b74e1098 100644 --- a/airflow/providers/apache/hive/hooks/hive.py +++ b/airflow/providers/apache/hive/hooks/hive.py @@ -486,7 +486,7 @@ def __init__(self, metastore_conn_id: str = default_conn_name) -> None: self.metastore = self.get_metastore_client() def __getstate__(self) -> Dict[str, Any]: - # This is for pickling to work despite the thirft hive client not + # This is for pickling to work despite the thrift hive client not # being pickable state = dict(self.__dict__) del state['metastore'] diff --git a/scripts/in_container/run_ci_tests.sh b/scripts/in_container/run_ci_tests.sh index bebcce8dffc69..69654c9e198c6 100755 --- a/scripts/in_container/run_ci_tests.sh +++ b/scripts/in_container/run_ci_tests.sh @@ -53,11 +53,11 @@ ${COLOR_RED_ERROR} * * Run all tests: * -* ./breeze --backend ${BACKEND} ${EXTRA_ARGS}--python ${PYTHON_MAJOR_MINOR_VERSION} --db-reset --skip-mounting-local-sources --test-type ${TEST_TYPE} tests +* ./breeze --backend ${BACKEND} ${EXTRA_ARGS}--python ${PYTHON_MAJOR_MINOR_VERSION} --db-reset --skip-mounting-local-sources --test-type ${TEST_TYPE} tests * * Enter docker shell: * -* ./breeze --backend ${BACKEND} ${EXTRA_ARGS}--python ${PYTHON_MAJOR_MINOR_VERSION} --db-reset --skip-mounting-local-sources --test-type ${TEST_TYPE} shell +* ./breeze --backend ${BACKEND} ${EXTRA_ARGS}--python ${PYTHON_MAJOR_MINOR_VERSION} --db-reset --skip-mounting-local-sources --test-type ${TEST_TYPE} shell * """ if [[ ${GITHUB_REGISTRY_PULL_IMAGE_TAG=} != "" ]]; then