使用python Scrip更新Cassandra Json值

2024-04-28 05:14:13 发布

您现在位置:Python中文网/ 问答频道 /正文

嗨,我对python很陌生。在我的Cassandra表中确实有以下列。我需要更新其中的某个值(将displayable设置为true)。如何通过python脚本实现这一点?在

{
  "rowId": "SYSTEM",
  "status": null,
  "startDate": null,
  "endDate": null,
  "creationDate": 1457051550494,
  "overview": null,
  "displayable": false,
  "checklistType": "NUMERIC"
}

我试着跟着走,但没用。(缩进错误应为缩进块)

^{pr2}$

CourseAssignment table

CourseAssignment table


Tags: 脚本falsetruestatusoverviewsystemnullcassandra