summaryrefslogtreecommitdiffstats
path: root/yql/essentials/sql/v1/select_yql_window.h
blob: 5db5f75495a2b4c197e104e4be992ffdae5a08d8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#pragma once

#include "node.h"

namespace NSQLTranslationV1 {

class IYqlWindowLikeNode: public INode {
public:
    explicit IYqlWindowLikeNode(TPosition position);

    bool SetYqlSelectWindowName(TContext& ctx, TString windowName) override;

protected:
    TString GetWindowName() const;

private:
    TString WindowName_;
};

struct TYqlWindowArgs {
    TString Name;
    TVector<TNodePtr> Args;
};

TNodePtr BuildYqlWindow(TPosition position, TYqlWindowArgs&& args);

} // namespace NSQLTranslationV1