Skip to content

Commit 7819e82

Browse files
authored
docs: fix typos in db engine spec comments and docstrings (#46674)
1 parent 4c04953 commit 7819e82

7 files changed

Lines changed: 12 additions & 12 deletions

File tree

‎docs/admin_docs/configuration/alerts-reports.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ Superset automatically retries webhook deliveries on `429 Too Many Requests` and
275275
#### You must have in your `docker-compose.yml`
276276

277277
- A Redis message broker
278-
- PostgreSQL DB instead of SQLlite
278+
- PostgreSQL DB instead of SQLite
279279
- One or more `celery worker`
280280
- A single `celery beat`
281281

‎superset/databases/schemas.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@
214214

215215
def sqlalchemy_uri_validator(value: str) -> str:
216216
"""
217-
Validate if it's a valid SQLAlchemy URI and refuse SQLLite by default
217+
Validate if it's a valid SQLAlchemy URI and refuse SQLite by default
218218
"""
219219
try:
220220
uri = make_url_safe(value.strip())

‎superset/db_engine_specs/base.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -835,7 +835,7 @@ def get_extended_aggregation_func(
835835
quote_table_includes_schema = True
836836

837837
# Does the DB support catalogs? A catalog here is a group of schemas, and has
838-
# different names depending on the DB: BigQuery calles it a "project", Postgres calls # noqa: E501
838+
# different names depending on the DB: BigQuery calls it a "project", Postgres calls # noqa: E501
839839
# it a "database", Trino calls it a "catalog", etc.
840840
#
841841
# When this is changed to true in a DB engine spec it MUST support the
@@ -1073,7 +1073,7 @@ def start_oauth2_dance(cls, database: Database) -> None:
10731073
"default_redirect_uri": default_redirect_uri,
10741074
# When OAuth2 is complete the browser tab where OAuth2 happened will send a
10751075
# message to the original browser tab informing that the process was
1076-
# successful. To allow cross-tab commmunication in a safe way we assign a
1076+
# successful. To allow cross-tab communication in a safe way we assign a
10771077
# UUID to the original tab, and the second tab will use it when sending the
10781078
# message.
10791079
"tab_id": tab_id,
@@ -1313,7 +1313,7 @@ def get_allows_alias_in_select(
13131313
"""
13141314
Method for dynamic `allows_alias_in_select`.
13151315
1316-
In Dremio this atribute is version-dependent, so Superset needs to inspect the
1316+
In Dremio this attribute is version-dependent, so Superset needs to inspect the
13171317
database configuration in order to determine it. This method allows engine-specs
13181318
to define dynamic values for the attribute.
13191319
"""

‎superset/db_engine_specs/exasol.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ class ExasolEngineSpec(BaseEngineSpec): # pylint: disable=abstract-method
120120
],
121121
}
122122

123-
# Exasol's DATE_TRUNC function is PostgresSQL compatible
123+
# Exasol's DATE_TRUNC function is PostgreSQL compatible
124124
_time_grain_expressions = {
125125
None: "{col}",
126126
TimeGrain.SECOND: "DATE_TRUNC('second', {col})",

‎superset/db_engine_specs/gsheets.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ def validate_parameters(
463463
) -> list[SupersetError]:
464464
errors: list[SupersetError] = []
465465

466-
# backwards compatible just incase people are send data
466+
# backwards compatible just in case people are send data
467467
# via parameters for validation
468468
parameters = properties.get("parameters", {})
469469
if parameters and parameters.get("catalog"):

‎superset/db_engine_specs/hive.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -794,9 +794,9 @@ def get_view_names(
794794
schema is used, however some dialects infer the request as schema agnostic.
795795
796796
Note that PyHive's Hive SQLAlchemy dialect does not adhere to the specification
797-
where the `get_view_names` method returns both real tables and views. Futhermore
798-
the dialect wrongfully infers the request as schema agnostic when the schema is
799-
omitted.
797+
where the `get_view_names` method returns both real tables and views.
798+
Furthermore the dialect wrongfully infers the request as schema agnostic when
799+
the schema is omitted.
800800
801801
:param database: The database to inspect
802802
:param inspector: The SQLAlchemy inspector

‎superset/db_engine_specs/presto.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1091,7 +1091,7 @@ def get_table_names(
10911091
10921092
Note that PyHive's Hive and Presto SQLAlchemy dialects do not adhere to the
10931093
specification where the `get_table_names` method returns both real tables and
1094-
views. Futhermore the dialects wrongfully infer the request as schema agnostic
1094+
views. Furthermore the dialects wrongfully infer the request as schema agnostic
10951095
when the schema is omitted.
10961096
10971097
:param database: The database to inspect
@@ -1118,7 +1118,7 @@ def get_view_names(
11181118
schema is used, however some dialects infer the request as schema agnostic.
11191119
11201120
Note that PyHive's Presto SQLAlchemy dialect does not adhere to the
1121-
specification as the `get_view_names` method is not defined. Futhermore the
1121+
specification as the `get_view_names` method is not defined. Furthermore the
11221122
dialect wrongfully infers the request as schema agnostic when the schema is
11231123
omitted.
11241124

0 commit comments

Comments
 (0)