code: def test_execute_connection_error() -> None:
      from superset.db_engine_specs.clickhouse import (
          ClickHouseEngineSpec,
      )
      from superset.db_engine_specs.exceptions import (
          SupersetDBAPIDatabaseError,
      )
  
      cursor = Mock()
      cursor.execute.side_effect = NewConnectionError(
          HTTPConnection("localhost"), "Exception with sensitive data"
      )
      with pytest.raises(SupersetDBAPIDatabaseError) as ex:
          ClickHouseEngineSpec.execute(
              cursor, "SELECT col1 from table1"
          )
  
file_path: superset/tests/unit_tests/db_engine_specs/test_clickhouse.py
imports: from datetime import datetime
  from typing import Any, Optional
  from unittest.mock import Mock
  import pytest
  from sqlalchemy.types import Boolean, Date, DateTime, DECIMAL, Float, Integer, String, TypeEngine
  from urllib3.connection import HTTPConnection
  from urllib3.exceptions import NewConnectionError
  from superset.utils.core import GenericDataType
  from tests.unit_tests.db_engine_specs.utils import assert_column_spec, assert_convert_dttm
  from tests.unit_tests.fixtures.common import dttm
label_desc: Use image node_id 2 for calling a global function with example usage: test_execute_connection_error() without return types