AWS Cassandra nodejs-奇怪的结果

问题描述

我希望在nodejs中使用cassandra-driver与cassandra一起使用。

当我执行这样的简单查询时:

  const results = await chatDbClient.execute('SELECT * FROM chat_db.messages LIMIT 5');
  return results.rows;

我收到以下结果:

Row from Keyspaces Row {
  user_from: [Long],user_to: [Long],message_id: [TimeUuid],body: 'c'
}
[
  Row {
    user_from: Long { low: 1,high: 0,unsigned: false },user_to: Long { low: 2,message_id: TimeUuid {
      buffer: <Buffer f0 c2 49 b1 fd a4 11 ea 8b 02 85 9f 38 c2 63 74>
    },body: 'c'
  },Row {
    user_from: Long { low: 1,message_id: TimeUuid {
      buffer: <Buffer f0 c2 22 a3 fd a4 11 ea bc 5e cb 7d 37 47 a0 82>
    },body: 'f'
  },message_id: TimeUuid {
      buffer: <Buffer f0 c2 22 a2 fd a4 11 ea bc 5e cb 7d 37 47 a0 82>
    },body: 'e'
  },message_id: TimeUuid {
      buffer: <Buffer f0 c1 fb 95 fd a4 11 ea a3 0f 3b e9 2e a5 73 87>
    },body: 'd'
  },message_id: TimeUuid {
      buffer: <Buffer f0 c1 fb 94 fd a4 11 ea a3 0f 3b e9 2e a5 73 87>
    },body: 'm'
  }
]

但是,如果我出于测试目的直接从aws仪表板执行查询,则会收到以下消息:

enter image description here

为什么我的应用程序中的结果格式如此奇怪?

提前Tnx

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)