You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enforce a timezone-aware datetime axis by default.
Pipes now enforce timezone-naive datetimes as UTC, even if the underlying column type is timezone-naive. To use datetime-naive datetime axes, you must explicitly set the dtype to datetime64[ns].
Designate the index name primary for primary keys.
Like the datetime index, the primary index is used for joins and will be created as the primary key in new tables.
Add autoincrement to Pipe.parameters
Like upsert, you may designate an incremental integer primary key by setting autoincrement to True in the pipe parameters. Note that autoincrement will be True if you specify a primary index but do not specify a dtype or pass into the initial dataframe. This is only available for sql pipes.
Add option static to Pipe.parameters to disable schema modification.
Set static to True in a pipe's parameters to prevent any modification of the column's data types.
Add get_create_table_queries() to build from dtypes dictionaries.
You may get a CREATE TABLE query from a dtypes dictionary (in addition to a SELECT query). The function meerschaum.utils.sql.get_create_table_query() now also accepts an arguments primary_key and autoincrement to designate a primary key column.
Create a multi-column index for columns defined in Pipe.columns.
To disable this behavior, set unique to None in Pipe.indices.
Default to BIT for boolean columns in MSSQL.
The previous workaround was to store bool columns as INT. This change now defaults to BIT when creating new tables. Boolean columns cannot be nullable for MSSQL.
Improve file protection in edit config.
Writing an invalid config file will now stop you before committing the changes. The previous behavior would lead to data loss.
Catch exceptions when creating chunk labels.
If a datetime bound cannot be determined for a chunk, return pd.NA.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
v2.6.0
Enforce a timezone-aware
datetime
axis by default.Pipes now enforce timezone-naive datetimes as UTC, even if the underlying column type is timezone-naive. To use datetime-naive datetime axes, you must explicitly set the
dtype
todatetime64[ns]
.Designate the index name
primary
for primary keys.Like the
datetime
index, theprimary
index is used for joins and will be created as the primary key in new tables.Add
autoincrement
toPipe.parameters
Like
upsert
, you may designate an incremental integer primary key by settingautoincrement
toTrue
in the pipe parameters. Note thatautoincrement
will beTrue
if you specify aprimary
index but do not specify a dtype or pass into the initial dataframe. This is only available forsql
pipes.Add option
static
toPipe.parameters
to disable schema modification.Set
static
toTrue
in a pipe's parameters to prevent any modification of the column's data types.Add
get_create_table_queries()
to build fromdtypes
dictionaries.You may get a
CREATE TABLE
query from adtypes
dictionary (in addition to aSELECT
query). The functionmeerschaum.utils.sql.get_create_table_query()
now also accepts an argumentsprimary_key
andautoincrement
to designate a primary key column.Create a multi-column index for columns defined in
Pipe.columns
.To disable this behavior, set
unique
toNone
inPipe.indices
.Default to
BIT
for boolean columns in MSSQL.The previous workaround was to store
bool
columns asINT
. This change now defaults toBIT
when creating new tables. Boolean columns cannot be nullable for MSSQL.Improve file protection in
edit config
.Writing an invalid config file will now stop you before committing the changes. The previous behavior would lead to data loss.
Catch exceptions when creating chunk labels.
If a datetime bound cannot be determined for a chunk, return
pd.NA
.This discussion was created from the release ⚡️ v2.6.0 Enforce UTC datetimes, add primary index and autoincrement..
Beta Was this translation helpful? Give feedback.
All reactions