# \#types-of-expectation

**URL:** https://discourse.greatexpectations.io/tag/types-of-expectation/6.md

[Latest](https://discourse.greatexpectations.io/latest.md) · [Categories](https://discourse.greatexpectations.io/categories.md) · [Tags](https://discourse.greatexpectations.io/tags.md)

---

## [Using DataBuck SDK to Discover Rules for Great Expectations](https://discourse.greatexpectations.io/t/using-databuck-sdk-to-discover-rules-for-great-expectations/2406)

<div class="topic-metadata">

**Author:** [@anu.modi](https://discourse.greatexpectations.io/u/anu.modi)\
**Replies:** 0\
**Last updated:** [November 4, 2026, 6:34am UTC](https://discourse.greatexpectations.io/t/using-databuck-sdk-to-discover-rules-for-great-expectations/2406 "2026-11-04T06:34:53Z")

</div>

Integrating automated data quality rule discovery with an existing GX pipeline By Sri Harsha Tanamala Great Expectations (GX) provides a flexible framework for validating data, but defining and maintaining Expectations…

---

## [Integrating Automated Rule Discovery with Great Expectations Using SDK](https://discourse.greatexpectations.io/t/integrating-automated-rule-discovery-with-great-expectations-using-sdk/2405)

<div class="topic-metadata">

**Author:** [@anu.modi](https://discourse.greatexpectations.io/u/anu.modi)\
**Replies:** 0\
**Last updated:** [October 30, 2026, 11:44am UTC](https://discourse.greatexpectations.io/t/integrating-automated-rule-discovery-with-great-expectations-using-sdk/2405 "2026-10-30T11:44:11Z")

</div>

Integrating Automated Rule Discovery with Great Expectations Using DataBuck SDK By Sri Harsha Tanmalla Great Expectations (GX) makes it straightforward to validate data, but defining the right Expectations is often wher…

---

## [Implementing GX Core to process multiple files/tables](https://discourse.greatexpectations.io/t/implementing-gx-core-to-process-multiple-files-tables/2306)

<div class="topic-metadata">

**Author:** [@mara557](https://discourse.greatexpectations.io/u/mara557)\
**Replies:** 0\
**Last updated:** [October 25, 2025, 1:53pm UTC](https://discourse.greatexpectations.io/t/implementing-gx-core-to-process-multiple-files-tables/2306 "2025-10-25T13:53:27Z")

</div>

Hello everyone, I’m new to this and would like to ask whether it’s possible to implement the GX Core library so that it can run across multiple, unrelated files. We handle several projects where we may ingest dozens of…

---

## [Group By Expectations. 1.6.4](https://discourse.greatexpectations.io/t/group-by-expectations-1-6-4/2300)

<div class="topic-metadata">

**Author:** [@filiphjartstrom](https://discourse.greatexpectations.io/u/filiphjartstrom)\
**Replies:** 0\
**Last updated:** [October 7, 2025, 8:28am UTC](https://discourse.greatexpectations.io/t/group-by-expectations-1-6-4/2300 "2025-10-07T08:28:20Z")

</div>

Hello! I have searched the docs and git and cannot figure something out: Lets say i want to use the ExpectColumnSumToBeBetween expectation. How can I group by another column? For example: Group purchases by country and…

---

## [Expectations Suite: Expectations with same type only the last one is evaluated and results provided](https://discourse.greatexpectations.io/t/expectations-suite-expectations-with-same-type-only-the-last-one-is-evaluated-and-results-provided/2274)

<div class="topic-metadata">

**Author:** [@caudex](https://discourse.greatexpectations.io/u/caudex)\
**Replies:** 1\
**Last updated:** [August 5, 2025, 11:17am UTC](https://discourse.greatexpectations.io/t/expectations-suite-expectations-with-same-type-only-the-last-one-is-evaluated-and-results-provided/2274 "2025-08-05T11:17:12Z")

</div>

The problem i am having is where i have a validator and expectation suite with multiple of the same expectation types and only executes the last one in the list. I’ve added 3 expectations (2 with same type and 1 differe…

---

## [Unable to run ‘ExpectColumnPairValuesToBeEqual’ with spark on Databricks](https://discourse.greatexpectations.io/t/unable-to-run-expectcolumnpairvaluestobeequal-with-spark-on-databricks/2062)

<div class="topic-metadata">

**Author:** [@motaslimi](https://discourse.greatexpectations.io/u/motaslimi)\
**Replies:** 9\
**Last updated:** [July 28, 2025, 12:12pm UTC](https://discourse.greatexpectations.io/t/unable-to-run-expectcolumnpairvaluestobeequal-with-spark-on-databricks/2062 "2025-07-28T12:12:38Z")

</div>

When I’m trying to validate any expectation with parameters column\_A, column\_B, I get the following error: \[CANNOT\_RESOLVE\_DATAFRAME\_COLUMN\] Cannot resolve dataframe column "col\_1". It’s probably because of illegal refe…

---

## [Support - ExpectColumn catching allowed value\_sets](https://discourse.greatexpectations.io/t/support-expectcolumn-catching-allowed-value-sets/2208)

<div class="topic-metadata">

**Author:** [@dpires92](https://discourse.greatexpectations.io/u/dpires92)\
**Replies:** 1\
**Last updated:** [June 10, 2025, 3:40pm UTC](https://discourse.greatexpectations.io/t/support-expectcolumn-catching-allowed-value-sets/2208 "2025-06-10T15:40:12Z")

</div>

Hi everyone. I am facing some issues to validate a column. I am looking for an expectation that allows only specific value\_set in a column. For example, allowed\_values\_on\_column\_x = \[ "A", "B", "C" , "D" \] and then in…

---

## [Issue with ExpectColumnValuesToBeOfType Expectation For Postgres Database](https://discourse.greatexpectations.io/t/issue-with-expectcolumnvaluestobeoftype-expectation-for-postgres-database/2185)

<div class="topic-metadata">

**Author:** [@vijaykumar](https://discourse.greatexpectations.io/u/vijaykumar)\
**Replies:** 1\
**Last updated:** [April 25, 2025, 2:10pm UTC](https://discourse.greatexpectations.io/t/issue-with-expectcolumnvaluestobeoftype-expectation-for-postgres-database/2185 "2025-04-25T14:10:21Z")

</div>

Hello Everyone, We got an Issue while performing Validation on Postgres database with below expectation expectation\_with\_condition2 = gx.expectations.ExpectColumnValuesToBeOfType(column="asset\_type\_id", type\_="INTEGER"…

---

## [Great expectation is only returning 20 rows of failed records](https://discourse.greatexpectations.io/t/great-expectation-is-only-returning-20-rows-of-failed-records/1991)

<div class="topic-metadata">

**Author:** [@zeeshan.fractal](https://discourse.greatexpectations.io/u/zeeshan.fractal)\
**Replies:** 7\
**Last updated:** [March 14, 2025, 8:41am UTC](https://discourse.greatexpectations.io/t/great-expectation-is-only-returning-20-rows-of-failed-records/1991 "2025-03-14T08:41:26Z")

</div>

Hello Everyone, I’m currently working on a project that uses the Snowflake connector with Great Expectations (version 0.17.23). I’ve set up some validation rules, and my data is failing on several of these. However, eve…

---

## [ExpectationSuite from .json file](https://discourse.greatexpectations.io/t/expectationsuite-from-json-file/2017)

<div class="topic-metadata">

**Author:** [@bidek56](https://discourse.greatexpectations.io/u/bidek56)\
**Replies:** 3\
**Last updated:** [December 5, 2024, 5:20pm UTC](https://discourse.greatexpectations.io/t/expectationsuite-from-json-file/2017 "2024-12-05T17:20:17Z")

</div>

Using GE 1.2.4, how do I import ExpectationSuite from .json file like this one? thx { "name": "attribute", "meta": { "great\_expectations.\_\_version\_\_": "1.2.4", "columns": { "Unnamed: …

---

## [How to actually create a custom Query Expectations](https://discourse.greatexpectations.io/t/how-to-actually-create-a-custom-query-expectations/1521)

<div class="topic-metadata">

**Author:** [@mant](https://discourse.greatexpectations.io/u/mant)\
**Replies:** 2\
**Last updated:** [December 8, 2023, 7:46pm UTC](https://discourse.greatexpectations.io/t/how-to-actually-create-a-custom-query-expectations/1521 "2023-12-08T19:46:28Z")

</div>

After trying to replicate the tutorials on creating a custom Query expectation, copying the already implemented ones, I find myself unable to import any Query Expectation into my GX suite. Even just adding the already sh…

---

## [How to validate a list of values against a set](https://discourse.greatexpectations.io/t/how-to-validate-a-list-of-values-against-a-set/1473)

<div class="topic-metadata">

**Author:** [@jakethesdet](https://discourse.greatexpectations.io/u/jakethesdet)\
**Replies:** 3\
**Last updated:** [November 14, 2023, 7:30pm UTC](https://discourse.greatexpectations.io/t/how-to-validate-a-list-of-values-against-a-set/1473 "2023-11-14T19:30:21Z")

</div>

Hello! I’m looking for some information on how to validate a list of strings in a column against a preset list of values. Here is an example: data column = “Codes”: value = \[“01”,“02”,“03”,“04”,“05”\] value\_set = \[“01”…

---

## [Can I validate whether my SQL query should merge data from my source table to destination?](https://discourse.greatexpectations.io/t/can-i-validate-whether-my-sql-query-should-merge-data-from-my-source-table-to-destination/1271)

<div class="topic-metadata">

**Author:** [@jimmy3142](https://discourse.greatexpectations.io/u/jimmy3142)\
**Replies:** 1\
**Last updated:** [July 18, 2023, 5:04pm UTC](https://discourse.greatexpectations.io/t/can-i-validate-whether-my-sql-query-should-merge-data-from-my-source-table-to-destination/1271 "2023-07-18T17:04:37Z")

</div>

Hello! I have a SQL query that merges data from a staging table to a destination table and I have a handful of test cases that I would like to use to validate if the merge query should insert those records from the stag…

---

## [Does Great Expectations support file-level expectations?](https://discourse.greatexpectations.io/t/does-great-expectations-support-file-level-expectations/1262)

<div class="topic-metadata">

**Author:** [@austin\_gx](https://discourse.greatexpectations.io/u/austin_gx)\
**Replies:** 4\
**Last updated:** [July 18, 2023, 4:23pm UTC](https://discourse.greatexpectations.io/t/does-great-expectations-support-file-level-expectations/1262 "2023-07-18T16:23:02Z")

</div>

For example, iterating through each year + date combination and performing the following: Check for number of parquet files Check size of parquet files Check for the list of columns within a parquet file Validate colum…

---

## [Can GX read data from S3?](https://discourse.greatexpectations.io/t/can-gx-read-data-from-s3/1261)

<div class="topic-metadata">

**Author:** [@austin\_gx](https://discourse.greatexpectations.io/u/austin_gx)\
**Replies:** 1\
**Last updated:** [July 14, 2023, 7:46pm UTC](https://discourse.greatexpectations.io/t/can-gx-read-data-from-s3/1261 "2023-07-14T19:46:02Z")

</div>

We have a ETL pipeline which stores the results in a S3 bucket and would like to understand if we can use the great\_expectations library to validate that the content present in the bucket is as per expectations. If this …

---

## [How to check that a column \*does not\* exist?](https://discourse.greatexpectations.io/t/how-to-check-that-a-column-does-not-exist/1194)

<div class="topic-metadata">

**Author:** [@dr\_zaszus](https://discourse.greatexpectations.io/u/dr_zaszus)\
**Replies:** 0\
**Last updated:** [March 28, 2023, 2:07pm UTC](https://discourse.greatexpectations.io/t/how-to-check-that-a-column-does-not-exist/1194 "2023-03-28T14:07:50Z")

</div>

Is there any way to check that a specific column is not present in the table? I haven’t been able to find one in the standard ones. P.S. Sorry if this does not match “Feedback”. I was unable to create a post in the “Sup…

---

## [ETL transformation validation using great expectation](https://discourse.greatexpectations.io/t/etl-transformation-validation-using-great-expectation/1147)

<div class="topic-metadata">

**Author:** [@sd6974](https://discourse.greatexpectations.io/u/sd6974)\
**Replies:** 1\
**Last updated:** [December 6, 2022, 5:32pm UTC](https://discourse.greatexpectations.io/t/etl-transformation-validation-using-great-expectation/1147 "2022-12-06T17:32:58Z")

</div>

Suppose i have a source table and has two columns first name and last name.By applying ETL logic some transformation happens and in the target table it is inserted as “First name Last name” in name column in target table…

---

## [Cross Table Expectations](https://discourse.greatexpectations.io/t/cross-table-expectations/1142)

<div class="topic-metadata">

**Author:** [@alirng](https://discourse.greatexpectations.io/u/alirng)\
**Replies:** 0\
**Last updated:** [November 17, 2022, 5:35pm UTC](https://discourse.greatexpectations.io/t/cross-table-expectations/1142 "2022-11-17T17:35:58Z")

</div>

Currently trying to implement a cross table expectation that will check whether a specific value matches for a given primary key across two tables. Example: table\_1 = \[(a,1,3000), (b,0,2000), (c,0,4000), (d,1,3000)\] …

---

## [Great Expectation Setup with Azure Data Bricks](https://discourse.greatexpectations.io/t/great-expectation-setup-with-azure-data-bricks/1104)

<div class="topic-metadata">

**Author:** [@ramanpandey](https://discourse.greatexpectations.io/u/ramanpandey)\
**Replies:** 0\
**Last updated:** [August 25, 2022, 6:14am UTC](https://discourse.greatexpectations.io/t/great-expectation-setup-with-azure-data-bricks/1104 "2022-08-25T06:14:50Z")

</div>

Hello All, I am looking for the steps to be followed to setup the Great Expectations to my local system- Any Guidance will be helpful

---

## [How to add mulitple checks in single expectation to reduce cost (not in expectation\_suite)](https://discourse.greatexpectations.io/t/how-to-add-mulitple-checks-in-single-expectation-to-reduce-cost-not-in-expectation-suite/1080)

<div class="topic-metadata">

**Author:** [@Rudranil](https://discourse.greatexpectations.io/u/Rudranil)\
**Replies:** 0\
**Last updated:** [July 14, 2022, 2:25pm UTC](https://discourse.greatexpectations.io/t/how-to-add-mulitple-checks-in-single-expectation-to-reduce-cost-not-in-expectation-suite/1080 "2022-07-14T14:25:51Z")

</div>

We are trying to achieve a complex rule check like : “COL\_A\>COL\_B and COL\_C IS NOT NULL and (COL\_D in IN (SELECT COL\_E from another table where main\_table.key=another\_table.key) OR COL\_D is NULL)\*”. There are some poin…

---

## [No working examples of Custom expectations on Spark](https://discourse.greatexpectations.io/t/no-working-examples-of-custom-expectations-on-spark/1061)

<div class="topic-metadata">

**Author:** [@firozkapdi](https://discourse.greatexpectations.io/u/firozkapdi)\
**Replies:** 0\
**Last updated:** [June 29, 2022, 7:51am UTC](https://discourse.greatexpectations.io/t/no-working-examples-of-custom-expectations-on-spark/1061 "2022-06-29T07:51:34Z")

</div>

Hi All, I have observed that there are no working examples of custom expectations (Created locally and not submitted) for Spark. For Pandas it is easy you can do ge.from\_pandas and can give the custom class there. SAme…

---

## [Unable to run expectation with checkpoint](https://discourse.greatexpectations.io/t/unable-to-run-expectation-with-checkpoint/915)

<div class="topic-metadata">

**Author:** [@pmeh](https://discourse.greatexpectations.io/u/pmeh)\
**Replies:** 0\
**Last updated:** [October 28, 2021, 10:32pm UTC](https://discourse.greatexpectations.io/t/unable-to-run-expectation-with-checkpoint/915 "2021-10-28T22:32:18Z")

</div>

I created expectation using Jupyter notebook and ran it and it worked fine. But when I try to run it while creating a checkpoint, it gives me psycopg2 error. 716 def do\_execute(self, cursor, statement, parameters, …

---

## [BDD, Behat, Gherkin for linking expectations to requirements?](https://discourse.greatexpectations.io/t/bdd-behat-gherkin-for-linking-expectations-to-requirements/820)

<div class="topic-metadata">

**Author:** [@Blaise](https://discourse.greatexpectations.io/u/Blaise)\
**Replies:** 0\
**Last updated:** [July 7, 2021, 8:14pm UTC](https://discourse.greatexpectations.io/t/bdd-behat-gherkin-for-linking-expectations-to-requirements/820 "2021-07-07T20:14:12Z")

</div>

I may be tilting at windmills, but I wonder if anyone has explored integrating with cucumber/gherkin based testing frameworks? (eg. Given , When, Then keywords) Maybe it’s as simple as calling GE from the steps.py func…

---

## [How to name a custom multicolumn expectation](https://discourse.greatexpectations.io/t/how-to-name-a-custom-multicolumn-expectation/783)

<div class="topic-metadata">

**Author:** [@Roger](https://discourse.greatexpectations.io/u/Roger)\
**Replies:** 0\
**Last updated:** [June 9, 2021, 3:04am UTC](https://discourse.greatexpectations.io/t/how-to-name-a-custom-multicolumn-expectation/783 "2021-06-09T03:04:11Z")

</div>

The How to create custom Expectations page mentions Note: following Great Expectations naming conventions for Expectations is highly recommended, but not strictly required. If you want to confuse yourself with bad name…

---

## [The output of \`expect\_column\_pair\_values\_A\_to\_be\_greater\_than\_B\` in data docs seemed unfinished](https://discourse.greatexpectations.io/t/the-output-of-expect-column-pair-values-a-to-be-greater-than-b-in-data-docs-seemed-unfinished/781)

<div class="topic-metadata">

**Author:** [@Roger](https://discourse.greatexpectations.io/u/Roger)\
**Replies:** 0\
**Last updated:** [June 8, 2021, 6:09am UTC](https://discourse.greatexpectations.io/t/the-output-of-expect-column-pair-values-a-to-be-greater-than-b-in-data-docs-seemed-unfinished/781 "2021-06-08T06:09:40Z")

</div>

The output in data docs (as shown below) doesn’t seem to be “finished”, i.e. no formatting and no values in the Observed Value column. Is this is development or have I not run the expectation properly? Furthermore, I…

---

## [Error in build\_continuous\_partition\_object](https://discourse.greatexpectations.io/t/error-in-build-continuous-partition-object/780)

<div class="topic-metadata">

**Author:** [@Roger](https://discourse.greatexpectations.io/u/Roger)\
**Replies:** 0\
**Last updated:** [June 8, 2021, 2:42am UTC](https://discourse.greatexpectations.io/t/error-in-build-continuous-partition-object/780 "2021-06-08T02:42:39Z")

</div>

build\_continuous\_partition\_object throws a TypeError: --------------------------------------------------------------------------- TypeError Traceback (most recent call last) \<ipython-inpu…

---

## [Does any Expectations exist to compare 2 different partition in same batch?](https://discourse.greatexpectations.io/t/does-any-expectations-exist-to-compare-2-different-partition-in-same-batch/509)

<div class="topic-metadata">

**Author:** [@Karthik](https://discourse.greatexpectations.io/u/Karthik)\
**Replies:** 0\
**Last updated:** [November 19, 2020, 8:47am UTC](https://discourse.greatexpectations.io/t/does-any-expectations-exist-to-compare-2-different-partition-in-same-batch/509 "2020-11-19T08:47:08Z")

</div>

Hi All, DataSource : Spark Hosted Environment : Databricks Use Case : I have an expectation to compare 2 months of data in same batch by counting total number of stores and the percentage of difference should be withi…

---

## [How could I create an expectation that would test that the count of a particular value in a column is less than some percentage?](https://discourse.greatexpectations.io/t/how-could-i-create-an-expectation-that-would-test-that-the-count-of-a-particular-value-in-a-column-is-less-than-some-percentage/420)

<div class="topic-metadata">

**Author:** [@eugene.mandel](https://discourse.greatexpectations.io/u/eugene.mandel)\
**Replies:** 2\
**Last updated:** [October 5, 2020, 3:31pm UTC](https://discourse.greatexpectations.io/t/how-could-i-create-an-expectation-that-would-test-that-the-count-of-a-particular-value-in-a-column-is-less-than-some-percentage/420 "2020-10-05T15:31:47Z")

</div>

An expectation like that is not implemented yet. You can implement it as a custom expectation in your project.

---

## [How could I create an expectation to say the time value in a field should be later than some number of hours ago?](https://discourse.greatexpectations.io/t/how-could-i-create-an-expectation-to-say-the-time-value-in-a-field-should-be-later-than-some-number-of-hours-ago/418)

<div class="topic-metadata">

**Author:** [@eugene.mandel](https://discourse.greatexpectations.io/u/eugene.mandel)\
**Replies:** 0\
**Last updated:** [September 29, 2020, 9:04pm UTC](https://discourse.greatexpectations.io/t/how-could-i-create-an-expectation-to-say-the-time-value-in-a-field-should-be-later-than-some-number-of-hours-ago/418 "2020-09-29T21:04:36Z")

</div>

You can use this expectation: expect\_column\_values\_to\_be\_between The max\_value argument can be left unspecified (left as None). The min\_value is the argument that should express your constraint. However, you cannot set…
