Skip to content

Commit

Permalink
Fix implicit column reference, and associated warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
jcampbell committed Jul 6, 2018
1 parent 6c00889 commit 940e5fc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions great_expectations/dataset/sqlalchemy_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -653,12 +653,11 @@ def expect_column_median_to_be_between(self,
sa.func.sum(
sa.case([(sa.column(column) == None, 1)], else_=0)
).label('null_count')
]).
select_from(sa.table(self.table_name))
]).select_from(sa.table(self.table_name))
)

element_values = self.engine.execute(
sa.select(column).order_by(column).where(
sa.select([sa.column(column)]).order_by(sa.column(column)).where(
sa.column(column) != None
).select_from(sa.table(self.table_name))
)
Expand Down

0 comments on commit 940e5fc

Please sign in to comment.