Skip to content

Commit

Permalink
Misc. documentation typos and language improvements (#19599)
Browse files Browse the repository at this point in the history
  • Loading branch information
jplauri committed Nov 17, 2021
1 parent b9d31cd commit 355dec8
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion airflow/hooks/dbapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ def get_cursor(self):
@staticmethod
def _generate_insert_sql(table, values, target_fields, replace, **kwargs):
"""
Static helper method that generate the INSERT SQL statement.
Static helper method that generates the INSERT SQL statement.
The REPLACE variant is specific to MySQL syntax.
:param table: Name of the target table
Expand Down
2 changes: 1 addition & 1 deletion airflow/operators/generic_transfer.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class GenericTransfer(BaseOperator):
:type destination_table: str
:param source_conn_id: source connection
:type source_conn_id: str
:param destination_conn_id: source connection
:param destination_conn_id: destination connection
:type destination_conn_id: str
:param preoperator: sql statement or list of statements to be
executed prior to loading the data. (templated)
Expand Down
4 changes: 2 additions & 2 deletions airflow/providers/google/cloud/hooks/workflows.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,8 @@ def list_workflows(
:param filter_: Filter to restrict results to specific workflows.
:type filter_: str
:param order_by: Comma-separated list of fields that that
specify the order of the results. Default sorting order for a field is ascending.
:param order_by: Comma-separated list of fields that
specifies the order of the results. Default sorting order for a field is ascending.
To specify descending order for a field, append a "desc" suffix.
If not specified, the results will be returned in an unspecified order.
:type order_by: str
Expand Down
4 changes: 2 additions & 2 deletions airflow/providers/google/cloud/operators/workflows.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,8 +299,8 @@ class WorkflowsListWorkflowsOperator(BaseOperator):
:param filter_: Filter to restrict results to specific workflows.
:type filter_: str
:param order_by: Comma-separated list of fields that that
specify the order of the results. Default sorting order for a field is ascending.
:param order_by: Comma-separated list of fields that
specifies the order of the results. Default sorting order for a field is ascending.
To specify descending order for a field, append a "desc" suffix.
If not specified, the results will be returned in an unspecified order.
:type order_by: str
Expand Down
4 changes: 2 additions & 2 deletions airflow/providers/postgres/hooks/postgres.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,8 @@ def _generate_insert_sql(
table: str, values: Tuple[str, ...], target_fields: Iterable[str], replace: bool, **kwargs
) -> str:
"""
Static helper method that generate the INSERT SQL statement.
The REPLACE variant is specific to MySQL syntax.
Static helper method that generates the INSERT SQL statement.
The REPLACE variant is specific to PostgreSQL syntax.
:param table: Name of the target table
:type table: str
Expand Down
2 changes: 1 addition & 1 deletion airflow/providers/sqlite/hooks/sqlite.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def get_conn(self) -> sqlite3.dbapi2.Connection:
@staticmethod
def _generate_insert_sql(table, values, target_fields, replace, **kwargs):
"""
Static helper method that generate the INSERT SQL statement.
Static helper method that generates the INSERT SQL statement.
The REPLACE variant is specific to MySQL syntax.
:param table: Name of the target table
Expand Down
2 changes: 1 addition & 1 deletion scripts/in_container/run_generate_constraints.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ elif [[ ${GENERATE_CONSTRAINTS_MODE} == "pypi-providers" ]]; then
# This variant of constraints install uses the HEAD of the branch version for 'apache-airflow' but installs
# the providers from PIP-released packages at the moment of the constraint generation.
#
# Those constraints are actually those that that regular users use to install released version of Airflow.
# Those constraints are actually those that regular users use to install released version of Airflow.
# We also use those constraints after "apache-airflow" is released and the constraints are tagged with
# "constraints-X.Y.Z" tag to build the production image for that version.
#
Expand Down

0 comments on commit 355dec8

Please sign in to comment.