ClickHouse/tests/integration/test_executable_dictionary/user_scripts/input_argument.py
2021-12-28 22:55:31 +03:00

12 lines
273 B
Python
Executable File

#!/usr/bin/python3
import sys
if __name__ == '__main__':
arg = int(sys.argv[1])
for line in sys.stdin:
updated_line = line.replace('\n', '')
print(updated_line + '\t' + "Key " + str(arg) + " " + updated_line, end='\n')
sys.stdout.flush()