1//===----------------------------------------------------------------------===//
2// DuckDB
3//
4// duckdb/optimizer/rule/in_clause_simplification.hpp
5//
6//
7//===----------------------------------------------------------------------===//
8
9#pragma once
10
11#include "duckdb/optimizer/rule.hpp"
12
13namespace duckdb {
14
15// The in clause simplification rule rewrites cases where left is a column ref with a cast and right are constant values
16class InClauseSimplificationRule : public Rule {
17public:
18 explicit InClauseSimplificationRule(ExpressionRewriter &rewriter);
19
20 unique_ptr<Expression> Apply(LogicalOperator &op, vector<reference<Expression>> &bindings, bool &changes_made,
21 bool is_root) override;
22};
23
24} // namespace duckdb
25