summaryrefslogtreecommitdiffstats
path: root/yql/essentials/tools/sql_functions_dump
diff options
context:
space:
mode:
authorrobot-piglet <[email protected]>2025-10-06 19:59:57 +0300
committerrobot-piglet <[email protected]>2025-10-06 20:11:39 +0300
commitf20e9ebc5b0e69419f9a6ca6662a7cab8a1cb764 (patch)
tree222047c5a9391806e627451d78425d28166dd89c /yql/essentials/tools/sql_functions_dump
parent8c130e63da8f0bc40cb29bb33c74fcb0568304a9 (diff)
Intermediate changes
commit_hash:ab4976b763ebd56a8961ed2ba5e9f289926a0086
Diffstat (limited to 'yql/essentials/tools/sql_functions_dump')
-rw-r--r--yql/essentials/tools/sql_functions_dump/sql_functions_dump.cpp7
-rw-r--r--yql/essentials/tools/sql_functions_dump/test/test.py12
-rw-r--r--yql/essentials/tools/sql_functions_dump/ya.make2
3 files changed, 9 insertions, 12 deletions
diff --git a/yql/essentials/tools/sql_functions_dump/sql_functions_dump.cpp b/yql/essentials/tools/sql_functions_dump/sql_functions_dump.cpp
index 66dae62d636..4094d2ffce9 100644
--- a/yql/essentials/tools/sql_functions_dump/sql_functions_dump.cpp
+++ b/yql/essentials/tools/sql_functions_dump/sql_functions_dump.cpp
@@ -5,7 +5,7 @@
using namespace NYql;
-int Main(int argc, const char *argv[])
+int Main(int argc, const char* argv[])
{
Y_UNUSED(argc);
Y_UNUSED(argv);
@@ -26,14 +26,13 @@ int Main(int argc, const char *argv[])
return 0;
}
-int main(int argc, const char *argv[]) {
+int main(int argc, const char* argv[]) {
NYql::NBacktrace::RegisterKikimrFatalActions();
NYql::NBacktrace::EnableKikimrSymbolize();
try {
return Main(argc, argv);
- }
- catch (...) {
+ } catch (...) {
Cerr << CurrentExceptionMessage() << Endl;
return 1;
}
diff --git a/yql/essentials/tools/sql_functions_dump/test/test.py b/yql/essentials/tools/sql_functions_dump/test/test.py
index ca4d1ad5b87..0e8a6ef6ab5 100644
--- a/yql/essentials/tools/sql_functions_dump/test/test.py
+++ b/yql/essentials/tools/sql_functions_dump/test/test.py
@@ -9,12 +9,8 @@ TOOL_PATH = yatest.common.binary_path('yql/essentials/tools/sql_functions_dump/s
def test_functions_dump():
with open(os.path.join(DATA_PATH, "sql_functions.json")) as f:
func_from_file = json.load(f)
- res = yatest.common.execute(
- [TOOL_PATH],
- check_exit_code=True,
- wait=True
- )
+ res = yatest.common.execute([TOOL_PATH], check_exit_code=True, wait=True)
func_from_tool = json.loads(res.stdout)
- assert func_from_tool == func_from_file, 'JSON_DIFFER\n' \
- 'File:\n %(func_from_file)s\n\n' \
- 'Tool:\n %(func_from_tool)s\n' % locals()
+ assert func_from_tool == func_from_file, (
+ 'JSON_DIFFER\n' 'File:\n %(func_from_file)s\n\n' 'Tool:\n %(func_from_tool)s\n' % locals()
+ )
diff --git a/yql/essentials/tools/sql_functions_dump/ya.make b/yql/essentials/tools/sql_functions_dump/ya.make
index 73dda185476..5467c07bbfc 100644
--- a/yql/essentials/tools/sql_functions_dump/ya.make
+++ b/yql/essentials/tools/sql_functions_dump/ya.make
@@ -1,5 +1,7 @@
PROGRAM()
+ENABLE(YQL_STYLE_CPP)
+
SRCS(
sql_functions_dump.cpp
)