@@ -3036,9 +3036,10 @@ def handle_opencypher_query(self, line, cell, local_ns):
3036
3036
"""
3037
3037
parser = argparse .ArgumentParser ()
3038
3038
parser .add_argument ('-pc' , '--plan-cache' , type = str .lower , default = 'auto' ,
3039
- help = f'Plan cache mode to use. Accepted values: { OPENCYPHER_PLAN_CACHE_MODES } ' )
3039
+ help = f'Neptune Analytics only. Specifies the plan cache mode to use. '
3040
+ f'Accepted values: { OPENCYPHER_PLAN_CACHE_MODES } ' )
3040
3041
parser .add_argument ('-qt' , '--query-timeout' , type = int , default = None ,
3041
- help = f'Maximum query timeout in milliseconds.' )
3042
+ help = f'Neptune Analytics only. Specifies the maximum query timeout in milliseconds.' )
3042
3043
parser .add_argument ('--explain-type' , type = str .lower , default = 'dynamic' ,
3043
3044
help = f'Explain mode to use when using the explain query mode. '
3044
3045
f'Accepted values: { OPENCYPHER_EXPLAIN_MODES } ' )
@@ -3142,6 +3143,12 @@ def handle_opencypher_query(self, line, cell, local_ns):
3142
3143
first_tab_html = opencypher_explain_template .render (table = explain ,
3143
3144
link = f"data:text/html;base64,{ base64_str } " )
3144
3145
elif args .mode == 'query' :
3146
+ if not self .client .is_analytics_domain ():
3147
+ if args .plan_cache != 'auto' :
3148
+ print ("planCache is not supported for Neptune DB, ignoring." )
3149
+ if args .query_timeout is not None :
3150
+ print ("queryTimeoutMilliseconds is not supported for Neptune DB, ignoring." )
3151
+
3145
3152
query_start = time .time () * 1000 # time.time() returns time in seconds w/high precision; x1000 to get in ms
3146
3153
oc_http = self .client .opencypher_http (cell , query_params = query_params ,
3147
3154
plan_cache = args .plan_cache ,
0 commit comments