redis-jdbc-driver icon indicating copy to clipboard operation
redis-jdbc-driver copied to clipboard

Why am I getting a missing hash-tags(curly-brackets enclosed string) error when I run `scan 0 match finance* count 10`

Open wendazhi opened this issue 2 years ago • 3 comments

image

When I enclose it with curly braces as indicated by the error message, I cannot obtain any results. like this: image

but,when i use redis-cli to run this command, it`s ok image

Platform Versions: connection type: cluster DataGrip: 2023.2 Driver: 1.4 stable MacOS Ventura 13.5.1

wendazhi avatar Oct 18 '23 12:10 wendazhi

@wendazhi, do you still experience the same behavior with JDBC 1.5?

tjlee avatar Jul 26 '24 12:07 tjlee

@tjlee @Veirisa I'm getting the same issue with JDBC 1.5 when running against Dragonfly DB, which JDBC requires to connect in "cluster" mode. However it's working with redis-cli without issues with or without cluster mode.

INFO

# Server
redis_version:6.2.11
dragonfly_version:df-v1.23.2
redis_mode:cluster
arch_bits:64
os:Linux 6.8.0-1016-aws aarch64
multiplexing_api:iouring
tcp_port:6385
thread_count:2
uptime_in_seconds:81728
uptime_in_days:0

# < SNIP >

# Replication
role:master
connected_slaves:0
master_replid:4a1af1a4f81d548bb5d332641976b178edc7ac60

# Modules
module:name=ReJSON,ver=20000,api=1,filters=0,usedby=[search],using=[],options=[handle-io-errors]
module:name=search,ver=20000,api=1,filters=0,usedby=[],using=[ReJSON],options=[handle-io-errors]

# Keyspace
db0:keys=2115,expires=2072,avg_ttl=-1

# Cluster
cluster_enabled:1

I can actually can see in SQL logs of DG that when connecting it performs SCAN calls without issue and builds db/keys in Database Explorer just fine

troex avatar Nov 22 '24 21:11 troex