I have create a bucket;
create primary index;
create some GSI index;
In the Query Workbench ,I can see the bucket under Fully Queryable Buckets, but when I click the bucket, I can not show any Summary and Flavor Info.
At the same time,For demo bucket(beer-sample and travel-sample), I can see the Summary and Flavor Info.
I am using :
Couchbase Version: 4.1.0-5005 Enterprise Edition (build-5005) on MAC 10.10.5 (14F27);
Query Workbench Developer Preview 1.0.0 on MAC 10.10.5 (14F27);
and in my bucket I have 3153 documents.
I can run the describe query, the result looks like this:
Status Elapsed Time Execution Time Result Count Result Size
success 321.217713ms 321.217713ms 1 256561B
[
"json: error calling MarshalJSON for type main.Field: json: error calling MarshalJSON for type *main.Schema: json: error calling MarshalJSON for type main.Field: json: error calling MarshalJSON for type *main.Schema: json: error calling MarshalJSON for type main.Field: json: error calling MarshalJSON for type *main.Schema: json: error calling MarshalJSON for type main.Field: json: unsupported value: NaN",
{
"#docs": 12,
"Flavor": "",
"fields": []
},
"json: error calling MarshalJSON for type main.Field: json: error calling MarshalJSON for type *main.Schema: json: error calling MarshalJSON for type main.Field: json: error calling MarshalJSON for type *main.Schema: json: error calling MarshalJSON for type main.Field: json: error calling MarshalJSON for type *main.Schema: json: error calling MarshalJSON for type main.Field: json: unsupported value: NaN",
"json: error calling MarshalJSON for type main.Field: json: error calling MarshalJSON for type *main.Schema: json: error calling MarshalJSON for type main.Field: json: error calling MarshalJSON for type *main.Schema: json: error calling MarshalJSON for type main.Field: json: unsupported value: NaN",
btw,the document is import by cbrestore, and I am using sync gateway 1.1.0.
I apologize for the slow update, I had trouble with my forums account and wasn’t getting notifications.
You appear to have run into a bug in the schema inferencing code. That bug may be fixed in the most recent version of the Query Workbench DP, v1.0.2, which you can download it from the Tools tab on the downloads page:
I am using Query Workbench Developer Preview 1.0.2
and when I click my bucket, the refresh icon before Metadata is also show refreshing (at least 1h until now).
and when I run
describe mybucket;
some errors shows as following:
[
"json: error calling MarshalJSON for type inferencer.fieldMap: json: error calling MarshalJSON for type inferencer.fieldMap: json: error calling MarshalJSON for type inferencer.fieldMap: json: error calling MarshalJSON for type inferencer.fieldMap: json: unsupported value: NaN",
"json: error calling MarshalJSON for type inferencer.fieldMap: json: error calling MarshalJSON for type inferencer.fieldMap: json: error calling MarshalJSON for type inferencer.fieldMap: json: error calling MarshalJSON for type inferencer.fieldMap: json: unsupported value: NaN",
"json: error calling MarshalJSON for type inferencer.fieldMap: json: error calling MarshalJSON for type inferencer.fieldMap: json: error calling MarshalJSON for type inferencer.fieldMap: json: error calling MarshalJSON for type inferencer.fieldMap: json: unsupported value: NaN",
Hi, you’ve definitely found a bug in my code. It’s complaining about “NaN”, do you have any number fields whose value is NaN or null? Can you send me a sample of documents so I can figure out where my code is going wrong?
How big is your bucket? Could I have a larger sample to try and debug my code? You could either attach here, or e-mail directly to me (eben at couchbase.com).