Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in exportToAres() with duckdb output format #749

Open
ganisimov opened this issue Feb 23, 2024 · 1 comment
Open

Error in exportToAres() with duckdb output format #749

ganisimov opened this issue Feb 23, 2024 · 1 comment
Assignees

Comments

@ganisimov
Copy link

When I run exportToAres() with outputFormat="duckdb", I see following error:

arguments imply differing number of rows: 1, 0

Here is log:

...
Connecting using Redshift driver
Generating Measurement reports
Generating Measurement reports
Connecting using Redshift driver
Error in data.frame(CONCEPT_ID = concept_id, CONCEPT_NAME = report$CONCEPT_NAME,  :
  arguments imply differing number of rows: 1, 0

This happens when concept_id is 0 and some other fields, like concept_name, are NAs. normalizeEmptyValue() replaces NAs with empty vectors and subsequent call to createConceptMedatataTable() tries to create data.frame out of concept_id of length 1 and the empty vectors.

Not sure if having concept_id 0 with empty concept_name is a valid situation.
When running with JSON output format against the same data, no error is produced.

@Mikhail-iontsev Mikhail-iontsev self-assigned this Mar 4, 2024
@Mikhail-iontsev
Copy link
Member

Pushed fix to #742

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants