# What happened to the ability to pass in custom sql queries to batch\_kwargs? It doesn't seem to work anymore if I'm using the new (experimental) modular expectations API

**URL:** https://discourse.greatexpectations.io/t/what-happened-to-the-ability-to-pass-in-custom-sql-queries-to-batch-kwargs-it-doesnt-seem-to-work-anymore-if-im-using-the-new-experimental-modular-expectations-api/615
**Category:** Archive
**Tags:** how-to
**Created:** [February 6, 2021, 4:14pm UTC](https://discourse.greatexpectations.io/t/what-happened-to-the-ability-to-pass-in-custom-sql-queries-to-batch-kwargs-it-doesnt-seem-to-work-anymore-if-im-using-the-new-experimental-modular-expectations-api/615 "2021-02-06T16:14:16Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![bhcastleton](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.greatexpectations.io/bhcastleton/32/73_2.png) [@bhcastleton](https://discourse.greatexpectations.io/u/bhcastleton)
#### Post date: [February 6, 2021, 4:14pm UTC](https://discourse.greatexpectations.io/t/what-happened-to-the-ability-to-pass-in-custom-sql-queries-to-batch-kwargs-it-doesnt-seem-to-work-anymore-if-im-using-the-new-experimental-modular-expectations-api/615/1 "2021-02-06T16:14:16Z")

</div>

Many Great Expectations users want to know how to validate data sets from sql queries instead of from full tables or files. What are the possible ways to do this using the new modular expectations API?
