Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

152
Views
Filter expression to check empty value is present in array or not in DynamoDB

I have data stored as [ { "S" : "" } ] in DynamoDB. I want to check whether the record contain empty value or not so I tried

FilterExpression : `contains (columnName, :data)`
   ExpressionAttributeValues:{
   ":data": ""
}

But i am getting no result from query. What is wrong with this?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

I've created 2 items in the DDB table. 1 with empty value, 1 with non-empty value as follows:

enter image description here

Then I ran this query:

{
  "TableName": "xxx",
  "FilterExpression": "#DDB_data5vizmh5osmv = :data5vizmh5osmv",
  "ExpressionAttributeNames": {
    "#DDB_data5vizmh5osmv": "data"
  },
  "ExpressionAttributeValues": {
    ":data5vizmh5osmv": ""
  }
}

And here are the results I got. I filtered 1 item with empty value.

enter image description here

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!