Couchbase N1Ql query insert array using spark not work

spark
n1ql

#1

I have CB spark connector 2.2.0 and I tried following insert query using spark connector

  val query = "insert into " + userBucketName + " values ('" + values._1 + "',{'data':" + 
  values._2.map(_._2).toSeq + "});"
  println("QQ:"+query)
  sc.sparkContext
    .couchbaseQuery(N1qlQuery.simple(query), bucketName = userBucketName)
    .collect()

but this query not insert into CB and values._2.map(_._2) size more than millions


#2

Check limits

https://developer.couchbase.com/documentation/server/4.0/clustersetup/server-setup.html


#3

This simple query not insert data into CB using spark connector


#4

Perhaps turn up the log level to see what’s happening. I assume you’re not doing millions of records any more. What happens when it fails?


#5

I checked that limit but even I simple insert two values in array but it not work