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

Can't use MANIFEST and FORMAT AS JSON in COPY command simultaneously #49

Open
whale2 opened this issue May 8, 2019 · 2 comments
Open

Comments

@whale2
Copy link

whale2 commented May 8, 2019

For the query like this -

COPY table FORM 's3://path/to/manifest' MANIFEST FORMAT AS JSON 's3://path/to/jsonpaths';

it seems like FORMAT AS JSON is being ignored and the driver tries to read the data as delimited strings.
Real Redshift has no problem executing this query.

I'm getting the following exception:
jp.ne.opt.redshiftfake.FakeAmazonSQLException: Row List(Column(Some({"origin": "xxx", "event": {"button": "green", "clicked": "true"}, "id": 16, "event_id": 116}))) has different value count then Vector(ColumnDefinition(id,Integer), ColumnDefinition(button,Varchar), ColumnDefinition(clicked,Bit), ColumnDefinition(event_id,Integer))

@ocadaruma
Copy link
Collaborator

Sorry for late response. I will take a look within a week.

@ocadaruma
Copy link
Collaborator

ocadaruma commented May 24, 2019

It seems I have to fix parser.
Thank you for reporting.

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