Questions tagged [datastax-enterprise-graph]

DataStax Enterprise Graph is a scalable, enterprise-ready graph database.

DataStax Enterprise Graph is a scalable, enterprise-ready graph database capable of storing and querying graphs with billions of elements while providing enterprise features such as security, monitoring, advanced management, encryption and 24/7 support.

213 questions
7
votes
1 answer

How do I "cancel" an error in gremlin-console and continue with the next command without exiting?

In gremlin-console, when I make a syntax error like the example below - where I forgot to the 2nd quotation - I don't know what to type to return me back to the normal prompt gremlin>. Anything I type including Ctrl+C, Ctrl+U will continue the…
Glide
  • 20,235
  • 26
  • 86
  • 135
7
votes
1 answer

Migrating from Neo4J to DataStax Graph DB (DSE)

We have developed custom and proprietary Software for Route Optimization, using Neo4J as our Graph DB. We also developed few plugins and unmanaged Extensions in Java, that implement specific Business Logic whenever search is done on the Graph.…
Auro
  • 81
  • 2
4
votes
1 answer

What are the ways to select distinct count in cassandra?

I need to select distinct count in table in cassandra. As I understand direct distinct count is not supported in cassandra not even nested queries like rdbms. select count(*) from (select distinct key_part_one from stackoverflow_composite) as…
4
votes
1 answer

Gremlin: Add an edge and drop an edge in single gremlin query

how to add an edge and dropping an edge to same vertex type in single gremlin query. say we have two types of vertex types A --is--> B now i have vertex which is connected to some other vertex of B. I want to update the A's vertex to some other…
4
votes
2 answers

Create a empty array inside a Gremlin traversal?

This sounds silly but is there a way to create a empty array inside a Gremlin traversal? For the query below: g.V().has('person','name', 'marko').project('a', 'b').by().by() I want to project b as an empty array. I have…
Glide
  • 20,235
  • 26
  • 86
  • 135
4
votes
0 answers

Why does a traversal that filters on partition key need a full-table scan?

I'm investigating a possible bug with partition scans using custom vertex IDs in DSE Graph. For some reason, selecting a vertex by its full ID works as expected, but retrieving the whole partition results in a full table scan (i.e. graph scan…
4
votes
1 answer

Dse graph schema full or schema less

I am confused if DataStax graph is schema full or schema-less. I am asking this question because getting started tutorial tells to create schema. But I inserted random key-value on edge properties and DSE graph accepted it without error. Will it be…
3
votes
1 answer

Tinkerpop Gremlin - How to aggregate variables into traversal independant collections

I'm currently reading The Practitioner's Guide to Graph Data and am trying to solve the following problem (just for learning purposes). The following is in the context of the books movie dataset, which in this example makes use of a "Tag" vertex, a…
3
votes
0 answers

Issue with DataStax graph loader edge loading with property key

DSE VERSION 6.7 and DSE graph loader version 6.7 We have two vertex name "x" and "y" and there is connecting edges named "z" between for x to y. That edge has property also. So wee needs to load that also. And properties data types are Txt(string)…
3
votes
1 answer

Apache Tinkerpop Gremlin Returns Query Results using Select Values As

I have this query that it is working as expected for…
user962206
  • 15,637
  • 61
  • 177
  • 270
3
votes
1 answer

DSE graph more threads result in slow response times

I have asked this question before. But asking again with a concrete example. So I have DSE graph running locally on my Mac. I have the simplest possible creation of a vertex and below is the traversal. g.addV("company").property("id",…
Sathyakumar Seshachalam
  • 2,013
  • 3
  • 20
  • 32
3
votes
1 answer

Creation of DSEGraphFrames in Java or Scala using a SparkSession

I am trying to obtain a DSEGraphFrame of my DSE graphs in either java or scala. I am using the blog documentation, as follows //load a graph in Java DseGraphFrame graph = DseGraphFrameBuilder.dseGraph("test", spark); // load a graph in scala val…
3
votes
0 answers

PySpark, Graph, and Spark data frames foreach

I am working on using spark sql context data frames to parallelize the operations. Briefly, I read in a CSV into a data frame df then call df.foreachPartition(testFunc) to do a get-or-create operation on the graph (this is in testFunc). I am not…
2
votes
1 answer

Iterate list of values from traversal A in traversal B (Gremlin)

This is my test data: graph = TinkerGraph.open() g= graph.traversal() g.addV('Account').property('id',"0x0").as('a1'). addV('Account').property('id',"0x1").as('a2'). addV('Account').property('id',"0x2").as('a3'). …
2
votes
1 answer

Using Spark to add Edges gremlin

I can't save my edge when I'm using spark as follows: for information it can save edge by using gremlin console val graph = DseGraphFrameBuilder.dseGraph("GRAPH_NAME",…
BeginMoh
  • 123
  • 1
  • 11
1
2 3
14 15