Skip to content

Commit

Permalink
Merge pull request #224 from NREL/athena-datetime
Browse files Browse the repository at this point in the history
Writing parquet files with newer datetime format
  • Loading branch information
nmerket committed Apr 27, 2021
2 parents 07fc9be + d1600c9 commit b98ba46
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
2 changes: 1 addition & 1 deletion buildstockbatch/postprocessing.py
Expand Up @@ -147,7 +147,7 @@ def read_simulation_outputs(fs, reporting_measures, sim_dir, upgrade_id, buildin
def write_dataframe_as_parquet(df, fs, filename):
tbl = pa.Table.from_pandas(df, preserve_index=False)
with fs.open(filename, 'wb') as f:
parquet.write_table(tbl, f, flavor='spark')
parquet.write_table(tbl, f)


def clean_up_results_df(df, cfg, keep_upgrade_id=False):
Expand Down
14 changes: 11 additions & 3 deletions docs/changelog/changelog_dev.rst
Expand Up @@ -61,9 +61,17 @@ Development Changelog
This fixes that as well as checks to make sure files were uploaded
before running the crawler.

.. change::
:tags: bugfix
:pullreq: 224
:tickets: 221

Defaults to the newer datetime encoding in the parquet files now that
Athena can understand it.

.. change::
:tags: workflow
:pullreq:
:tickets:
:pullreq: 219
:tickets: 189

Adding measure arguments for reporting measures in the workflow generator.
Adding measure arguments for reporting measures in the workflow generator.
2 changes: 2 additions & 0 deletions docs/installation.rst
Expand Up @@ -66,9 +66,11 @@ configure your user account with your AWS credentials. This setup only needs to

1. `Install the AWS CLI`_ version 2 (select the version for your local OS; not for Docker).
2. `Configure the AWS CLI`_. (Don't type the ``$`` in the example.)
3. You may need to `change the Athena Engine version`_ for your query workgroup to v2.

.. _Install the AWS CLI: https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-install.html
.. _Configure the AWS CLI: https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-configure.html#cli-quick-configuration
.. _change the Athena Engine version: https://docs.aws.amazon.com/athena/latest/ug/engine-versions-changing.html

.. _eagle_install:

Expand Down

0 comments on commit b98ba46

Please sign in to comment.