PyAthena

PyAthena is a Python DB API 2.0 (PEP 249) client for Amazon Athena.

MIT License

Downloads
11.4M
Stars
459
Committers
23

Bot releases are hidden (Show)

PyAthena - v3.0.10

Published by laughingman7743 almost 1 year ago

What's Changed

New Contributors

Full Changelog: https://github.com/laughingman7743/PyAthena/compare/v3.0.9...v3.0.10

PyAthena - v2.9.6

Published by laughingman7743 over 2 years ago

  • Update s3fs dependencies #342
    Thanks @nikhil27472 #340
PyAthena - v2.3.1

Published by laughingman7743 almost 3 years ago

  • Allow the boto3 session object to pass as an argument to the connection method.
    Thanks @benkehoe. (#248)
PyAthena - v2.3.0

Published by laughingman7743 over 3 years ago

  • Support SQLAlchemy 1.4
PyAthena - v2.2.0

Published by laughingman7743 over 3 years ago

  • Change schema name (database name) to optional.
  • Support for catalog.
    Thanks @milanaleksic. (#220)
PyAthena - v1.11.5

Published by laughingman7743 over 3 years ago

  • Support duration_seconds, poll_interval and kill_on_interrupt options in SQLAlchemy connection string.
    Thanks @acountrec. (#214)
  • Support passing the execute method keyword arguments to the pandas.read_csv method arguments.
    Thanks @bjcttam, @austinlostinboston. (#169, #210)
PyAthena - v2.1.2

Published by laughingman7743 over 3 years ago

  • Support duration_seconds, poll_interval and kill_on_interrupt options in SQLAlchemy connection string.
    Thanks @acountrec. (#214)
  • Support passing the execute method keyword arguments to the pandas.read_csv method arguments.
    Thanks @bjcttam, @austinlostinboston. (#169, #210)
PyAthena - v2.1.1

Published by laughingman7743 almost 4 years ago

  • Change the default value of na_values in PandasCursor from None to empty character.
    If you want to change the behavior to that of the previous version, explicitly set na_values to None in the argument of the execute method.
    import pyathena
    from pyathena.pandas.cursor import PandasCursor
    cursor = pyathena.connect(s3_staging_dir="s3://YOUR_S3_BUCKET/path/to/",
                              region_name="us-west-2",
                              cursor_class=PandasCursor).cursor()
    df = cursor.execute("SELECT * FROM many_rows",
                        na_values=None).as_pandas()
    
    Thanks @EdwardJRoss. (#204)
PyAthena - v1.11.4

Published by laughingman7743 almost 4 years ago

  • Change the default value of na_values in PandasCursor from None to empty character.
    If you want to change the behavior to that of the previous version, explicitly set na_values to None in the argument of the execute method.
    import pyathena
    from pyathena.pandas_cursor import PandasCursor
    cursor = pyathena.connect(s3_staging_dir="s3://YOUR_S3_BUCKET/path/to/",
                              region_name="us-west-2",
                              cursor_class=PandasCursor).cursor()
    df = cursor.execute("SELECT * FROM many_rows",
                        na_values=None).as_pandas()
    
    Thanks @EdwardJRoss. (#204)
PyAthena - v1.11.3

Published by laughingman7743 almost 4 years ago

  • Support verify option in SQLAlchemy connection string.
    Thanks @tamersalama. (#188)
PyAthena - v2.1.0

Published by laughingman7743 almost 4 years ago

PyAthena - v2.0.2

Published by laughingman7743 almost 4 years ago

  • Fix poll_interval type from int to float.
    Thanks @naikordian. (#198)
PyAthena - v2.0.1

Published by laughingman7743 almost 4 years ago

  • Fix extra package names to lowercase.
    Thanks @Akeboshiwind. (#189)
  • Support verify option in SQLAlchemy connection string.
    Thanks @tamersalama. (#188)
  • Implement DictCursor & AsyncDictCursor.
    Thanks @jerome-white. (#194)
PyAthena - v2.0.0

Published by laughingman7743 almost 4 years ago

  • Drop support for Python2.7 and Python3.5.
  • Add type hints.
  • Move the classes related to Pandas to the package pyathena.pandas.
  • Remove the execution_time_in_millis field from the cursor and result set object. (Same as the engine_execution_time_in_millis field)
PyAthena - v1.11.2

Published by laughingman7743 about 4 years ago

  • Fix for empty string decimal value in PandasCursor.
      Thanks @hoffrocket. (laughingman7743/PyAthena/pull/157)
  • Changed to escape % characters, even if there are no parameters to bind in SQLAlchemy.
      Thanks @diego-serrano-glean. (laughingman7743/PyAthena/issues/160)
PyAthena - v1.11.1

Published by laughingman7743 about 4 years ago

  • Add keep_default_na, na_values and quoting arguments to the PandasCursor execute method.
PyAthena - v1.11.0

Published by laughingman7743 over 4 years ago

  • Support for canceling query execution on KeyboardInterrupt.
PyAthena - v1.10.8

Published by laughingman7743 over 4 years ago

  • Fix types mismatch in the pandas.DataFrame.to_sql method.
    Thanks @RiccardoDiGuida, @thibault-ketterer. (laughingman7743/PyAthena/issues/145, laughingman7743/PyAthena/issues/146)
PyAthena - v1.10.7

Published by laughingman7743 over 4 years ago

  • Fix an overflow error in PandaCursor.
    Thanks @juviasuisei @KneeShard. (laughingman7743/PyAthena/issues/141)
PyAthena - v1.10.6

Published by laughingman7743 over 4 years ago

  • Add the following query execution statistics.
    Thanks @navi86. (laughingman7743/PyAthena/pull/140)
    • query_queue_time_in_millis
    • total_execution_time_in_millis
    • query_planning_time_in_millis
    • service_processing_time_in_millis
    • data_manifest_location