dybyte commented on code in PR #9642:
URL: https://github.com/apache/seatunnel/pull/9642#discussion_r2246946764
##########
seatunnel-connectors-v2/connector-redis/src/main/java/org/apache/seatunnel/connectors/seatunnel/redis/client/RedisClusterClient.java:
##########
@@ -79,7 +79,7 @@ public List<Map<String, String>> batchGetHash(List<String>
keys) {
List<Map<String, String>> result = new ArrayList<>(keys.size());
for (String key : keys) {
Map<String, String> map = jedis.hgetAll(key);
- map.put("hash_key", key);
+ map.put(redisParameters.getKeyFieldName(), key);
Review Comment:
Thank you for your question. To maintain consistency with other data types,
the default key field name was initially set to "key". However, after
considering your point, I realized that this could potentially cause
significant impact on users.
Therefore, I have updated the code so that for the hash data type only, the
default value of key_field_name is set to "hash_key". This change helps avoid
possible conflicts and unexpected behavior for users working with hash data.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]