Skip to content

Releases: moj-analytical-services/pydbtools

Fix permissions for temp table from dataframe

16 Jun 15:56
422649d
Compare
Choose a tag to compare

Fixes an issue where data from a previous session for temporary tables that had yet to be auto-deleted prevented the table being recreated.

Temporary table from dataframe fix

11 May 11:42
93f90a1
Compare
Choose a tag to compare

Creating a temporary table from a dataframe would append the data when run successively, this fix creates the table afresh each time.

Create a temporary table from dataframe

02 Mar 10:01
25497d8
Compare
Choose a tag to compare

v5.2.0 - 2022-02-28

Added

Function that creates a temporary table from a pandas.DataFrame, see pydbtools.dataframe_to_temp_table.

Save query to parquet

15 Feb 10:04
e861810
Compare
Choose a tag to compare

Added

  • Function that saves the result of SQL query to a parquet file, see pydbtools.save_query_as_parquet. This is required for dbtools.

New AP compatibility

20 Jan 13:46
8889368
Compare
Choose a tag to compare

Added

  • Functions that read SQL from strings of multiple statements, see pydbtools.read_sql_queries and pydbtools.read_sql_queries_gen.
  • Functions that delete database entities and the S3 data for those entities, see pydbtools.delete_database_and_data, pydbtools.delete_table_and_data and pydbtools.delete_partitions_and_data.

Changed

  • Temporary database names are now compatible with EKS.
  • ctas_approach now defaults to True, the default behaviour for awswrangler, using a temporary database.
  • Queries automatically use values for pyarrow_additional_kwargs that solve this awswrangler issue

v4.0.1: Updating dependencies (#48)

24 Sep 16:33
d199c7e
Compare
Choose a tag to compare
Updating dependencies

jinja templating

16 Jul 16:15
2e785ba
Compare
Choose a tag to compare
v4 release (#47)

See changelog

v3.1.1: bug fix for pydbtools (#46)

25 Jun 08:52
b3f9df2
Compare
Choose a tag to compare
Bug fix - see changelog

v3.1.0

06 Apr 06:55
5e62ae6
Compare
Choose a tag to compare
Create poetry-pypi-release.yml

Add logging

15 Feb 16:22
b261357
Compare
Choose a tag to compare