Comments (3)
Is that what amazing dunamo db does? Let's say if there's an item with a set with 1 element and later that element is removed.
this test fails for the .set(...)
case, but succeeds for the .delete(...)
case. Meaning, DynamoDB is seemingly okay with empty sets so long as they have previously had values in them, just not creating new ones. Absolutely baffling.
@pytest.mark.parametrize("op", [F("set").set(set()), F("set").delete({"a"})])
async def test_empty_set(client: Client, table: TableName, op):
await client.put_item(table, {"h": "h", "r": "r", "set": {"a"}})
await client.update_item(table, {"h": "h", "r": "r"}, op)
EDIT: Actually, F("set").delete({"a"})
causes the key to be removed from the item
from aiodynamo.
Is that what amazing dunamo db does? Let's say if there's an item with a set with 1 element and later that element is removed.
from aiodynamo.
F.set_if_not_exists
which doesn't have an equivalent for empty sets from what I can see (eg "remove_if_not_exists")
from aiodynamo.
Related Issues (20)
- F should implement __eq__ and __repr__
- 21.12 breaks some apis HOT 2
- Maybe summarise how DynamoDB works
- FileCredentials never set aws_session_token HOT 1
- Incompatible argument type issues after version 22.2 HOT 2
- KeyConditionExpression does not allow IN
- Support for applications running on Kubernetes
- after moving to github actions, integration tests are no longer run
- Add Amazon DynamoDB Accelerator (DAX) support to the library HOT 3
- Surprising behaviour in `Client.table_exists` HOT 1
- Auth Error With No Default Credentials HOT 1
- Unable to use AWS_REGION env var HOT 3
- Support AWS Web Identity Token File authentication HOT 2
- Shall we try goodfirstissue.dev ?
- Session instantiation HOT 6
- Get most recently added entry HOT 5
- ECS Fargate Credentials Compatibility HOT 2
- Support for typing-extensions version 4 module HOT 2
- Update maximum transaction operations to 100 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aiodynamo.