# Copyright (C) 2018-2021 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

from extensions.ops.select import Select
from mo.front.extractor import FrontExtractorOp


class WhereExtractor(FrontExtractorOp):
    op = 'Where'
    enabled = True

    @classmethod
    def extract(cls, node):
        Select.update_node_stat(node, {})
        return cls.enabled
