blob: 367473707ed5afaf134bb03178d7abb045e25c55 (
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
|
#pragma once
#include "node.h"
#include <yql/essentials/sql/settings/translation_settings.h>
#include <yql/essentials/parser/proto_ast/gen/v1_proto_split/SQLv1Parser.pb.main.h>
#include <expected>
namespace NSQLTranslationV1 {
enum class EYqlSelectError {
Error,
Unsupported,
};
using TYqlSelectResult = std::expected<TNodePtr, EYqlSelectError>;
TYqlSelectResult BuildYqlSelect(
TContext& ctx,
NSQLTranslation::ESqlMode mode,
const NSQLv1Generated::TRule_select_stmt& rule);
} // namespace NSQLTranslationV1
|