Skip to content

Commit

Permalink
Support all column types in SignalSchema.from_column_types
Browse files Browse the repository at this point in the history
  • Loading branch information
dreadatour committed Aug 19, 2024
1 parent 61aeed4 commit c5bbb39
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/datachain/lib/convert/flatten.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,25 @@
Boolean,
DateTime,
Float,
Float32,
Float64,
Int,
Int32,
Int64,
NullType,
String,
UInt64,
)

DATACHAIN_TO_TYPE = {
Int: int,
Int32: int,
Int64: int,
UInt64: int,
String: str,
Float: float,
Float32: float,
Float64: float,
Boolean: bool,
DateTime: datetime,
Binary: bytes,
Expand Down

0 comments on commit c5bbb39

Please sign in to comment.