# Data Quality Framework in Kafka

**URL:** <https://forum.confluent.io/t/data-quality-framework-in-kafka/3001>\
**Category:** ksqlDB\
**Created:** [6 October 2021 13:51 UTC](https://forum.confluent.io/t/data-quality-framework-in-kafka/3001 "2021-10-06T13:51:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vijay2801](https://avatars.discourse-cdn.com/v4/letter/v/3ec8ea/32.png) [@vijay2801](https://forum.confluent.io/u/vijay2801)\
**Post date:** [6 October 2021 13:51 UTC](https://forum.confluent.io/t/data-quality-framework-in-kafka/3001/1 "2021-10-06T13:51:03Z")

</div>

Hi All,  
I am a new bee to the Kafka streaming data.  
Like to reach out to the Kafka community to get some feedback.  
It is possible to have Metadata driven data quality framework for the streaming data?  
What are the different approach we have to implement the Data Quality to the streaming data.  
I haven’t found much in blog or community discussion around data quality framework. Seems like we can query the DQ rules in KSQL but it is hardcoded value in the query instead we want centralized metadata table to maintain the DQ rules and reusability.

---

<div class="post-metadata">

**Author:** ![brendan-s](https://avatars.discourse-cdn.com/v4/letter/b/ebca7d/32.png) [@brendan-s](https://forum.confluent.io/u/brendan-s)\
**Post date:** [1 December 2021 16:46 UTC](https://forum.confluent.io/t/data-quality-framework-in-kafka/3001/2 "2021-12-01T16:46:56Z")

</div>

I am not 100% certain what you are trying to accomplish. However, I spoke to the PM for ksqlDB and they suggested you may want dynamic persistent queries:

> **[ksqlDB Variable Substitution - ksqlDB Documentation](https://docs.ksqldb.io/en/latest/how-to-guides/substitute-variables/)**
>
> Learn how to use variables in SQL statements

You can parameterize queries, and when you want to change their values you just bounce the server running it - or restart the query.
