ClickHouse/tests/integration/test_executable_dictionary/user_scripts/input_sum.py
2024-09-27 10:19:49 +00:00

13 lines
323 B
Python
Executable File

#!/usr/bin/python3
import re
import sys
if __name__ == "__main__":
for line in sys.stdin:
updated_line = line.replace("\n", "")
line_split = re.split(r"\t+", line)
sum = int(line_split[0]) + int(line_split[1])
print(updated_line + "\t" + str(sum), end="\n")
sys.stdout.flush()