Skip to content

Commit

Permalink
Fix links to MSSQL documentation for date & time types
Browse files Browse the repository at this point in the history
  • Loading branch information
dolfinus committed Oct 31, 2024
1 parent 9c72d7a commit bd34ef3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions docs/changelog/next_release/+.doc.1.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix links to MSSQL date & time type documentation.
5 changes: 2 additions & 3 deletions docs/connection/db_connection/mssql/types.rst
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,7 @@ Temporal types
So not all of values in Spark DataFrame can be written to MSSQL.

References:
* `Clickhouse DateTime documentation <https://clickhouse.com/docs/en/sql-reference/data-types/datetime>`_
* `Clickhouse DateTime documentation <https://clickhouse.com/docs/en/sql-reference/data-types/datetime>`_
* `MSSQL date & time types documentation <https://learn.microsoft.com/en-us/sql/t-sql/data-types/date-and-time-types>`_
* `Spark DateType documentation <https://spark.apache.org/docs/latest/api/java/org/apache/spark/sql/types/DateType.html>`_
* `Spark TimestampType documentation <https://spark.apache.org/docs/latest/api/java/org/apache/spark/sql/types/TimestampType.html>`_

Expand All @@ -213,7 +212,7 @@ Temporal types
Last digit will be lost during read or write operations.
.. [5]
``time`` type is the same as ``timestamp`` with date ``1970-01-01``. So instead of reading data from MSSQL like ``23:59:59.999999``
``time`` type is the same as ``datetime2`` with date ``1970-01-01``. So instead of reading data from MSSQL like ``23:59:59.999999``
it is actually read ``1970-01-01 23:59:59.999999``, and vice versa.
String types
Expand Down

0 comments on commit bd34ef3

Please sign in to comment.