Skip to content

Commit fde870a

Browse files
committed
Executing graph queries required Execution Profiles
1 parent 948dcbc commit fde870a

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

cassandra/cluster.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2596,6 +2596,11 @@ def execute_graph_async(self, query, parameters=None, trace=False, execution_pro
25962596
object which callbacks may be attached to for asynchronous response delivery. You may also call ``ResponseFuture.result()`` to synchronously block for
25972597
results at any time.
25982598
"""
2599+
if self.cluster._config_mode is _ConfigMode.LEGACY:
2600+
raise ValueError(("Cannot execute graph queries using Cluster legacy parameters. "
2601+
"Consider using Execution profiles: "
2602+
"https://docs.datastax.com/en/developer/python-driver/latest/execution_profiles/#execution-profiles"))
2603+
25992604
if not isinstance(query, GraphStatement):
26002605
query = SimpleGraphStatement(query)
26012606

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ def run_setup(extensions):
423423
author='DataStax',
424424
packages=[
425425
'cassandra', 'cassandra.io', 'cassandra.cqlengine', 'cassandra.graph',
426-
'cassandra.insights', 'cassandra.datastax'
426+
'cassandra.datastax'
427427
],
428428
keywords='cassandra,cql,orm,dse,graph',
429429
include_package_data=True,

0 commit comments

Comments
 (0)