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

The report and aggregate commands with --json option don't work any more #329

Closed
ericguirbal opened this issue Oct 16, 2019 · 0 comments · Fixed by #330
Closed

The report and aggregate commands with --json option don't work any more #329

ericguirbal opened this issue Oct 16, 2019 · 0 comments · Fixed by #330

Comments

@ericguirbal
Copy link
Contributor

ericguirbal commented Oct 16, 2019

watson report --json and watson aggregate --json fail with this error message:

TypeError: Object of type Arrow is not JSON serializable

The regression was introduced in PR #313.

jmaupetit pushed a commit that referenced this issue Oct 16, 2019
Arrow provides a `for_json()` function encoding Arrow objects for JSON
output. Using the default-parameter of `json.dumps()`, this function is
invoked on Arrow objects which can then be encoded for JSON output.

Reference PR: #330 

Fix #329
davidag pushed a commit to davidag/Watson that referenced this issue Oct 16, 2019
Arrow provides a `for_json()` function encoding Arrow objects for JSON
output. Using the default-parameter of `json.dumps()`, this function is
invoked on Arrow objects which can then be encoded for JSON output.

Reference PR: jazzband#330

Fix jazzband#329
ericguirbal added a commit to ericguirbal/Watson that referenced this issue Oct 19, 2019
PR jazzband#330 forgot to fix the aggregate command (see bug jazzband#329).
ericguirbal added a commit to ericguirbal/Watson that referenced this issue Oct 19, 2019
PR jazzband#330 forgot to fix the aggregate command (see bug jazzband#329).
ericguirbal added a commit to ericguirbal/Watson that referenced this issue Oct 19, 2019
PR jazzband#330 forgot to fix the aggregate command (see bug jazzband#329).
jmaupetit pushed a commit that referenced this issue Oct 21, 2019
PR #330 forgot to fix the aggregate command (see bug #329).

Reference PR #331
davidag pushed a commit to davidag/Watson that referenced this issue Oct 21, 2019
PR jazzband#330 forgot to fix the aggregate command (see bug
jazzband#329).

Reference PR jazzband#331
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants