couchbaselabs / couchbaselabs/n1ql2csv

Error while executing n1ql2csv command

Open
#1 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2
Forks
1
PR merge metrics
No merged PRs in 30d

Description

I installed the travel-sample bucket and executed the command which is mentioned in readme. But I am getting below error.

n1ql2csv \
--cluster localhost \
--username abc \
--password abc\
--statement "SELECT airportname, city, country, faa, icao, id, type, tz FROM \`travel-sample\` AS airports WHERE type ='airport' ORDER BY airportname ASC" \
--output /tmp/results.csv \
--overwrite true

Error: params should include "fields" and/or non-empty "data" array of objects

I have tested this on Couchbase Enterprose 6.01 and 6.5.1

Kindly provide a solution

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.