Skip to content

Commit 0255494

Browse files
committed
fix millisecond typo
1 parent 45fb522 commit 0255494

6 files changed

Lines changed: 13 additions & 13 deletions

File tree

duckdb/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@
184184
ShortValue,
185185
StringValue,
186186
StructValue,
187-
TimestampMilisecondValue,
187+
TimestampMillisecondValue,
188188
TimestampNanosecondValue,
189189
TimestampSecondValue,
190190
TimestampTimeZoneValue,
@@ -270,7 +270,7 @@
270270
"SyntaxException",
271271
"TimeTimeZoneValue",
272272
"TimeValue",
273-
"TimestampMilisecondValue",
273+
"TimestampMillisecondValue",
274274
"TimestampNanosecondValue",
275275
"TimestampSecondValue",
276276
"TimestampTimeZoneValue",

duckdb/experimental/spark/sql/type_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
StructField,
2525
StructType,
2626
TimeNTZType,
27-
TimestampMilisecondNTZType,
27+
TimestampMillisecondNTZType,
2828
TimestampNanosecondNTZType,
2929
TimestampNTZType,
3030
TimestampSecondNTZType,
@@ -60,7 +60,7 @@
6060
"timestamp": TimestampNTZType,
6161
"timestamp with time zone": TimestampType,
6262
"timestamp_ms": TimestampNanosecondNTZType,
63-
"timestamp_ns": TimestampMilisecondNTZType,
63+
"timestamp_ns": TimestampMillisecondNTZType,
6464
"timestamp_s": TimestampSecondNTZType,
6565
"interval": DayTimeIntervalType,
6666
"list": ArrayType,

duckdb/experimental/spark/sql/types.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"StructType",
5454
"TimeNTZType",
5555
"TimeType",
56-
"TimestampMilisecondNTZType",
56+
"TimestampMillisecondNTZType",
5757
"TimestampNTZType",
5858
"TimestampNanosecondNTZType",
5959
"TimestampSecondNTZType",
@@ -282,8 +282,8 @@ def fromInternal(self, ts: int) -> datetime.datetime: # noqa: D102
282282
raise ContributionsAcceptedError
283283

284284

285-
class TimestampMilisecondNTZType(AtomicType, metaclass=DataTypeSingleton):
286-
"""Timestamp (datetime.datetime) data type without timezone information with milisecond precision."""
285+
class TimestampMillisecondNTZType(AtomicType, metaclass=DataTypeSingleton):
286+
"""Timestamp (datetime.datetime) data type without timezone information with millisecond precision."""
287287

288288
def __init__(self) -> None: # noqa: D107
289289
super().__init__(DuckDBPyType("TIMESTAMP_MS"))

duckdb/value/constant/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ def __init__(self, object: Any) -> None:
178178
super().__init__(object, TIMESTAMP_S)
179179

180180

181-
class TimestampMilisecondValue(Value):
181+
class TimestampMillisecondValue(Value):
182182
def __init__(self, object: Any) -> None:
183183
super().__init__(object, TIMESTAMP_MS)
184184

@@ -255,7 +255,7 @@ def __init__(self, object: Any, members: dict[str, DuckDBPyType]) -> None:
255255
"StringValue",
256256
"TimeTimeZoneValue",
257257
"TimeValue",
258-
"TimestampMilisecondValue",
258+
"TimestampMillisecondValue",
259259
"TimestampNanosecondValue",
260260
"TimestampSecondValue",
261261
"TimestampTimeZoneValue",

tests/fast/spark/test_spark_types.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
StructField,
3030
StructType,
3131
TimeNTZType,
32-
TimestampMilisecondNTZType,
32+
TimestampMillisecondNTZType,
3333
TimestampNanosecondNTZType,
3434
TimestampNTZType,
3535
TimestampSecondNTZType,
@@ -85,7 +85,7 @@ def test_all_types_schema(self, spark):
8585
StructField("timestamp", TimestampNTZType(), True),
8686
StructField("timestamp_s", TimestampSecondNTZType(), True),
8787
StructField("timestamp_ms", TimestampNanosecondNTZType(), True),
88-
StructField("timestamp_ns", TimestampMilisecondNTZType(), True),
88+
StructField("timestamp_ns", TimestampMillisecondNTZType(), True),
8989
StructField("time_tz", TimeType(), True),
9090
StructField("timestamp_tz", TimestampType(), True),
9191
StructField("float", FloatType(), True),

tests/fast/test_value.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
NullValue,
4747
ShortValue,
4848
StringValue,
49-
TimestampMilisecondValue,
49+
TimestampMillisecondValue,
5050
TimestampNanosecondValue,
5151
TimestampSecondValue,
5252
TimestampValue,
@@ -128,7 +128,7 @@ def test_float_to_decimal_prevention(self):
128128
"value",
129129
[
130130
TimestampSecondValue(datetime.datetime(1970, 3, 21, 12, 36, 43)),
131-
TimestampMilisecondValue(datetime.datetime(1970, 3, 21, 12, 36, 43)),
131+
TimestampMillisecondValue(datetime.datetime(1970, 3, 21, 12, 36, 43)),
132132
TimestampNanosecondValue(datetime.datetime(1970, 3, 21, 12, 36, 43)),
133133
],
134134
)

0 commit comments

Comments
 (0)