├── out.log ├── clippy.toml ├── demo ├── logs │ └── .gitignore └── data │ ├── data.influx.xz │ ├── data.json.xz │ ├── data.statsd.xz │ ├── data.tremor.xz │ ├── data.binflux.xz │ ├── data.msgpack.xz │ ├── numbers.json.xz │ ├── data.dogstatsd.xz │ └── apache_access_logs.xz ├── tests ├── queries │ ├── drop_event │ │ └── out │ ├── initial_state │ │ ├── in │ │ └── out │ ├── guard_having │ │ ├── out │ │ ├── in │ │ └── query.trickle │ ├── guard_where │ │ ├── out │ │ ├── in │ │ └── query.trickle │ ├── history │ │ └── in │ ├── pp_fn │ │ ├── out │ │ ├── in │ │ └── query.trickle │ ├── pp_const │ │ ├── out │ │ ├── in │ │ ├── query.trickle │ │ └── example1 │ │ │ └── c.tremor │ ├── pp_operator │ │ ├── in │ │ ├── foo5 │ │ │ └── bar.trickle │ │ └── out │ ├── pp_script │ │ ├── out │ │ ├── in │ │ └── foo6 │ │ │ └── bar.trickle │ ├── args_nesting_no_leakage │ │ ├── in │ │ └── out │ ├── pp_alias_operator │ │ ├── in │ │ ├── foo1 │ │ │ └── bar.trickle │ │ └── out │ ├── pp_alias_script │ │ ├── out │ │ ├── in │ │ └── foo2 │ │ │ └── bar.trickle │ ├── args_nesting_redefine │ │ ├── in │ │ └── out │ ├── pipeline_nested_script │ │ ├── out │ │ └── in │ ├── pp_win │ │ ├── out │ │ ├── in │ │ └── foo7 │ │ │ └── bar.trickle │ ├── pipeline_complex_args │ │ ├── in │ │ └── out │ ├── pipeline_nested_operator │ │ └── in │ ├── pp_alias_win │ │ ├── out │ │ ├── in │ │ └── foo3 │ │ │ └── bar.trickle │ ├── _template │ │ └── query.trickle │ ├── script_error │ │ └── in │ ├── group_set │ │ └── out │ ├── pp_config_directive │ │ ├── out │ │ ├── in │ │ └── foo4 │ │ │ └── bar.trickle │ ├── args_in_function │ │ └── query.trickle │ ├── simple_passthrough │ │ └── query.trickle │ ├── array_addition │ │ ├── query.trickle │ │ └── out │ ├── binary_op_short_circuit │ │ ├── in │ │ └── out │ ├── cardinality │ │ └── out │ ├── script_ports │ │ └── in │ ├── unused_node │ │ └── query.trickle │ ├── window_by_two_scripted │ │ ├── out │ │ └── in │ ├── group_each │ │ └── out │ ├── state │ │ └── in │ ├── with_config │ │ └── query.trickle │ ├── state_counter_operator │ │ └── in │ └── where_filter │ │ └── query.trickle ├── scripts │ ├── eq │ │ └── in │ ├── jump │ │ └── in │ ├── null │ │ ├── in │ │ └── out │ ├── range │ │ ├── in │ │ └── out │ ├── binary │ │ ├── in │ │ ├── out │ │ └── script.tremor │ ├── bit_ops │ │ ├── in │ │ └── out │ ├── bit_shift │ │ └── in │ ├── const_basic │ │ ├── in │ │ └── out │ ├── const_fn │ │ ├── in │ │ ├── out │ │ └── script.tremor │ ├── consts │ │ ├── in │ │ ├── out │ │ └── script.tremor │ ├── dummy │ │ ├── in │ │ ├── out │ │ └── script.tremor │ ├── emit_port │ │ ├── in │ │ ├── out │ │ └── script.tremor │ ├── escape │ │ ├── in │ │ ├── out │ │ └── script.tremor │ ├── expr_path │ │ ├── in │ │ └── out │ ├── fold_number │ │ ├── out │ │ ├── in │ │ └── script.tremor │ ├── heredoc │ │ ├── in │ │ ├── out │ │ └── script.tremor │ ├── let_field │ │ ├── in │ │ ├── out │ │ └── script.tremor │ ├── logical │ │ └── in │ ├── origin │ │ └── in │ ├── pp_alias0 │ │ ├── in │ │ ├── out │ │ └── foo0.tremor │ ├── pp_alias1 │ │ ├── in │ │ ├── out │ │ └── foo1 │ │ │ └── bar.tremor │ ├── pp_alias2 │ │ ├── in │ │ ├── out │ │ └── foo2 │ │ │ └── bar │ │ │ └── baz.tremor │ ├── pp_alias3 │ │ ├── in │ │ ├── out │ │ └── foo3 │ │ │ └── bar │ │ │ └── baz │ │ │ └── mork.tremor │ ├── pp_nest0 │ │ ├── in │ │ ├── out │ │ └── foo4.tremor │ ├── pp_nest1 │ │ ├── in │ │ ├── out │ │ └── foo5 │ │ │ └── bar.tremor │ ├── pp_nest2 │ │ ├── in │ │ ├── out │ │ └── foo6 │ │ │ └── bar │ │ │ └── baz.tremor │ ├── pp_nest3 │ │ ├── in │ │ ├── out │ │ └── foo7 │ │ │ └── bar │ │ │ └── baz │ │ │ └── mork.tremor │ ├── pp_nest4 │ │ ├── in │ │ ├── out │ │ └── foo8 │ │ │ └── bar.tremor │ ├── presence │ │ └── in │ ├── record │ │ ├── in │ │ ├── out │ │ └── script.tremor │ ├── subslice │ │ ├── out │ │ ├── in │ │ └── script.tremor │ ├── unary │ │ ├── in │ │ └── out │ ├── binary_binary │ │ └── in │ ├── binary_float │ │ └── in │ ├── binary_int │ │ └── in │ ├── binary_not │ │ ├── in │ │ ├── out │ │ └── script.tremor │ ├── binary_string │ │ └── in │ ├── binary_uint │ │ └── in │ ├── fold_array │ │ ├── in │ │ ├── out │ │ └── script.tremor │ ├── fold_number_imut │ │ ├── out │ │ ├── in │ │ └── script.tremor │ ├── fold_number_op │ │ ├── out │ │ ├── in │ │ └── script.tremor │ ├── fold_record │ │ ├── in │ │ ├── out │ │ └── script.tremor │ ├── multi_case │ │ ├── in │ │ ├── out │ │ └── script.tremor │ ├── multiline │ │ ├── out │ │ └── in │ ├── null_match │ │ ├── in │ │ ├── out │ │ └── script.tremor │ ├── only_const │ │ ├── in │ │ ├── out │ │ └── script.tremor │ ├── state_null │ │ ├── out │ │ ├── script.tremor │ │ └── in │ ├── string_concat │ │ ├── in │ │ ├── out │ │ └── script.tremor │ ├── array_paths │ │ ├── out │ │ ├── script.tremor │ │ └── in │ ├── empty_subslice │ │ ├── out │ │ ├── in │ │ └── script.tremor │ ├── extractor_dissect │ │ └── in │ ├── fold_array_imut │ │ ├── in │ │ ├── out │ │ └── script.tremor │ ├── fold_number_op_imut │ │ ├── out │ │ ├── in │ │ └── script.tremor │ ├── fold_record_imut │ │ ├── in │ │ ├── out │ │ └── script.tremor │ ├── patch_assign_target │ │ ├── in │ │ └── out │ ├── pp_inline_nest1 │ │ ├── in │ │ ├── out │ │ └── foo │ │ │ └── bar.tremor │ ├── regex │ │ ├── out │ │ └── in │ ├── subslice_repeated │ │ ├── out │ │ ├── in │ │ └── script.tremor │ ├── _template │ │ ├── script.tremor │ │ ├── in │ │ └── out │ ├── assign_and_path_match │ │ ├── in │ │ └── out │ ├── binary_binary_string │ │ └── in │ ├── binary_string_binary │ │ └── in │ ├── bytes_tcp │ │ └── in │ ├── drop │ │ ├── out │ │ ├── in │ │ └── script.tremor │ ├── fold_array_initial │ │ ├── in │ │ ├── out │ │ └── script.tremor │ ├── fold_array_initial_op │ │ ├── in │ │ ├── out │ │ └── script.tremor │ ├── glob │ │ ├── out │ │ ├── in │ │ └── script.tremor │ ├── heredoc_regression │ │ ├── in │ │ └── out │ ├── merge │ │ ├── in │ │ ├── out │ │ └── script.tremor │ ├── passthrough │ │ └── script.tremor │ ├── size_functions │ │ └── in │ ├── assign_move │ │ ├── out │ │ └── in │ ├── bytes_create │ │ ├── in │ │ └── out │ ├── const_in_const_lookup │ │ ├── in │ │ └── out │ ├── const_string_interpolation │ │ ├── in │ │ ├── out │ │ └── script.tremor │ ├── fold_array_initial_imut │ │ ├── in │ │ ├── out │ │ └── script.tremor │ ├── fold_array_initial_op_imut │ │ ├── in │ │ ├── out │ │ └── script.tremor │ ├── simple_match │ │ ├── out │ │ └── in │ ├── string_interpolation_escaped │ │ ├── in │ │ └── out │ ├── string_interpolation_nested │ │ ├── in │ │ ├── out │ │ └── script.tremor │ ├── string_interpolation_tailing │ │ ├── in │ │ ├── out │ │ └── script.tremor │ ├── array_pattern │ │ ├── out │ │ ├── in │ │ └── script.tremor │ ├── base64 │ │ ├── out │ │ ├── in │ │ └── script.tremor │ ├── const_expr_path_non_const_segment │ │ ├── in │ │ └── out │ ├── kv │ │ ├── in │ │ ├── out │ │ └── script.tremor │ ├── role_map │ │ ├── in │ │ └── out │ ├── string_interpolation_escaped_hash │ │ ├── in │ │ ├── out │ │ └── script.tremor │ ├── datetime │ │ ├── in │ │ └── out │ ├── fold_bool │ │ ├── out │ │ ├── in │ │ └── script.tremor │ ├── fold_bool_or │ │ ├── out │ │ ├── in │ │ └── script.tremor │ ├── heredoc_interpolation │ │ ├── out │ │ ├── in │ │ └── script.tremor │ ├── patch_default_key │ │ ├── in │ │ ├── out │ │ └── script.tremor │ ├── tuple_pattern │ │ ├── out │ │ └── in │ ├── array_comprehension │ │ ├── in │ │ └── out │ ├── fold_bool_imut │ │ ├── out │ │ ├── in │ │ └── script.tremor │ ├── fold_bool_or_imut │ │ ├── out │ │ ├── in │ │ └── script.tremor │ ├── recordpattern │ │ ├── out │ │ └── in │ ├── for_comprehension_filter │ │ ├── out │ │ └── in │ ├── record_add │ │ ├── script.tremor │ │ └── in │ ├── string_interpolation │ │ └── in │ ├── string_interpolation_simple │ │ ├── script.tremor │ │ └── in │ ├── cidr │ │ └── in │ ├── string_quoted_curly │ │ ├── script.tremor │ │ └── in │ ├── grok │ │ └── in │ ├── heredoc_usefn_interpolation │ │ ├── in │ │ └── out │ ├── json │ │ ├── out │ │ ├── in │ │ └── script.tremor │ ├── nested_patterns │ │ ├── out │ │ └── in │ ├── record_comprehension │ │ ├── in │ │ └── out │ ├── string_interpolation_prefix │ │ ├── script.tremor │ │ └── in │ ├── fn_extractors │ │ └── in │ ├── pp_fn_fib │ │ ├── script.tremor │ │ ├── in │ │ └── out │ ├── record_comprehension_imut │ │ ├── in │ │ └── out │ ├── cidr_multi │ │ └── in │ ├── merge_assign_target_state │ │ ├── out │ │ └── in │ ├── patch │ │ └── in │ ├── string_interpolation_import │ │ ├── script.tremor │ │ └── in │ ├── fn_fib │ │ ├── in │ │ └── out │ ├── module │ │ └── in │ ├── multi_use │ │ ├── in │ │ ├── out │ │ └── script.tremor │ ├── pass_args │ │ ├── in │ │ └── out │ ├── string_interpolation_regexp │ │ ├── in │ │ ├── out │ │ └── script.tremor │ ├── const_fn_tremor │ │ ├── in │ │ ├── out │ │ └── script.tremor │ ├── const_in_const │ │ ├── in │ │ ├── out │ │ └── script.tremor │ ├── const_of_const │ │ ├── in │ │ └── script.tremor │ ├── fn_nest2_fib │ │ └── in │ ├── heredoc_quoted_curly │ │ ├── script.tremor │ │ └── in │ ├── mod_nest2_const │ │ ├── in │ │ ├── beep.tremor │ │ └── out │ ├── patch_default │ │ ├── in │ │ └── script.tremor │ ├── pattern_cmp │ │ ├── in │ │ └── out │ ├── array_pattern_ignore │ │ └── in │ ├── escape_in_extractor │ │ └── in │ ├── fn_nest2_abs_fib │ │ └── in │ ├── heredoc_interpolation_quotes │ │ ├── script.tremor │ │ └── in │ ├── mod_access_const │ │ ├── in │ │ └── out │ ├── nested_use_with_path │ │ ├── in │ │ └── out │ ├── array_pattern_element │ │ ├── in │ │ └── script.tremor │ ├── influx │ │ └── in │ ├── empty_array_pattern │ │ ├── in │ │ ├── script.tremor │ │ └── out │ ├── string_interpolation_quotes │ │ ├── in │ │ └── script.tremor │ ├── tilde_extractor │ │ ├── script.tremor │ │ ├── in.xz │ │ └── out.xz │ ├── empty_record_pattern │ │ └── script.tremor │ ├── match_assign │ │ ├── in.xz │ │ └── out.xz │ ├── match_reorder1 │ │ ├── in.xz │ │ └── out.xz │ ├── path_defaulting │ │ └── out │ └── match_multiple_exprs │ │ └── in ├── data │ ├── input.txt │ └── input.xz ├── script_errors │ ├── _template │ │ ├── error.txt │ │ └── script.tremor │ ├── single_quote │ │ └── script.tremor │ ├── invalid_utf8_3 │ │ ├── script.tremor │ │ └── error.txt │ ├── lexer_ngt │ │ └── script.tremor │ ├── tailing_gt │ │ └── script.tremor │ ├── invalid_utf8_1 │ │ ├── script.tremor │ │ └── error.txt │ ├── lexer_diamond │ │ └── script.tremor │ ├── bin_invalid_bits │ │ └── script.tremor │ ├── lexer_invalid_float_exp │ │ ├── script.tremor │ │ └── error.txt │ ├── lexer_unterminated_heredoc │ │ └── script.tremor │ ├── tailing_heredoc │ │ └── script.tremor │ ├── arith_bad_shift_1 │ │ └── script.tremor │ ├── arith_bad_shift_2 │ │ └── script.tremor │ ├── bin_invalid_type │ │ └── script.tremor │ ├── invalid_const_binary │ │ └── script.tremor │ ├── invalid_const_unary │ │ └── script.tremor │ ├── invalid_utf8_2 │ │ └── script.tremor │ ├── lexer_bad_float │ │ ├── script.tremor │ │ └── error.txt │ ├── lexer_invalid_float │ │ ├── script.tremor │ │ └── error.txt │ ├── pp_unrecognized_token │ │ └── script.tremor │ ├── script_without_newline │ │ └── script.tremor │ ├── string_interpolation_empty │ │ └── script.tremor │ ├── unfinished_escape_eof │ │ └── script.tremor │ ├── lexer_invalid_hex │ │ └── script.tremor │ ├── lexer_string_interpolation │ │ └── script.tremor │ ├── lexer_unterminated_ident │ │ └── script.tremor │ ├── strnig_as_ident │ │ └── script.tremor │ ├── unexpected_escape │ │ └── script.tremor │ ├── lexer_bad_hex │ │ ├── script.tremor │ │ └── error.txt │ ├── lexer_bad_hex2 │ │ ├── script.tremor │ │ └── error.txt │ ├── lexer_bad_hex3 │ │ ├── script.tremor │ │ └── error.txt │ ├── lexer_bad_int │ │ └── script.tremor │ ├── lexer_heredoc_interpolation │ │ └── script.tremor │ ├── lexer_invalid_int_invalid_char │ │ └── script.tremor │ ├── lexer_unterminated_string │ │ └── script.tremor │ ├── merge_ident │ │ └── script.tremor │ ├── missing_function │ │ └── script.tremor │ ├── pp_unrecognized_token2 │ │ └── script.tremor │ ├── pp_unrecognized_token3 │ │ └── script.tremor │ ├── const_expr_id_into_arr │ │ └── script.tremor │ ├── heredoc_tailing │ │ └── script.tremor │ ├── lexer_heredoc_interpolation2 │ │ └── script.tremor │ ├── pp_unrecognized_token4 │ │ └── script.tremor │ ├── select_ident │ │ └── script.tremor │ ├── string_interpolation_eof │ │ └── script.tremor │ ├── string_interpolation_extractor │ │ └── script.tremor │ ├── const_expr_index_into_int │ │ └── script.tremor │ ├── const_expr_unknown_key │ │ └── script.tremor │ ├── double_const │ │ └── script.tremor │ ├── error_in_include │ │ ├── script.tremor │ │ └── snot.tremor │ ├── lexer_invalid_pp │ │ └── script.tremor │ ├── lexer_unterminated_heredoc2 │ │ └── script.tremor │ ├── pp_cyclic │ │ └── script.tremor │ ├── pp_unrecognized_token5 │ │ ├── foo │ │ │ └── bar.tremor │ │ └── script.tremor │ ├── const_expr_range_on_non_array │ │ └── script.tremor │ ├── lexer_unterminated_ident2 │ │ └── script.tremor │ ├── pp_unknown_function_in_function │ │ ├── script.tremor │ │ └── foo.tremor │ ├── string_interpolation_escape │ │ └── script.tremor │ ├── string_interpolation_invalid_utf8 │ │ └── script.tremor │ ├── const_expr_reverse_range │ │ └── script.tremor │ ├── function_error_1 │ │ └── script.tremor │ ├── function_error_2 │ │ └── script.tremor │ ├── lexer_string_interpolation2 │ │ └── script.tremor │ ├── lexer_triple_colon │ │ └── script.tremor │ ├── mul_overflow │ │ └── script.tremor │ ├── pp_nest_cyclic │ │ └── foo │ │ │ ├── bar.tremor │ │ │ └── baz.tremor │ ├── sub_overflow │ │ └── script.tremor │ ├── add_overflow │ │ └── script.tremor │ ├── const_expr_index_out_of_bounds │ │ └── script.tremor │ ├── const_expr_range_bad_end │ │ └── script.tremor │ ├── heredoc_interpolation_multiline │ │ └── script.tremor │ ├── lexer_unterminated_string2 │ │ └── script.tremor │ ├── const_expr_range_bad_start │ │ └── script.tremor │ ├── const_expr_range_out_of_bounds │ │ └── script.tremor │ ├── heredoc_interpolation_extractor │ │ └── script.tremor │ ├── heredoc_interpolation_invalid_unicode │ │ └── script.tremor │ ├── unknown_function_in_function │ │ └── script.tremor │ ├── bad_fold │ │ └── script.tremor │ ├── function_error_3 │ │ └── script.tremor │ ├── lexer_heredoc_interpolation3 │ │ └── script.tremor │ ├── bad_fold_imut │ │ └── script.tremor │ ├── heredoc_interpolation_ident │ │ └── script.tremor │ ├── invalid_extractor │ │ └── script.tremor │ ├── lexer_unterminated_extractor │ │ └── script.tremor │ ├── unknown_extractor │ │ └── script.tremor │ ├── function_error_n │ │ └── script.tremor │ ├── function_already_defined │ │ └── script.tremor │ ├── fn_bad_recur │ │ └── script.tremor │ └── invalid_escape_extractor │ │ └── script.tremor ├── query_runtime_errors │ ├── _template │ │ ├── error.txt │ │ └── query.trickle │ ├── script_bad_port │ │ ├── in │ │ ├── error.txt │ │ └── out │ ├── bad_state_window_return │ │ ├── in │ │ └── out │ ├── bad_vec_state_window_return │ │ ├── in │ │ └── out │ ├── binary_operators_and_left │ │ ├── out │ │ ├── in │ │ └── query.trickle │ ├── binary_operators_and_right │ │ ├── out │ │ ├── in │ │ └── query.trickle │ ├── binary_operators_or_left │ │ ├── out │ │ ├── in │ │ └── query.trickle │ ├── binary_operators_or_right │ │ ├── out │ │ ├── in │ │ └── query.trickle │ ├── binary_operators_xor_left │ │ ├── out │ │ ├── in │ │ └── query.trickle │ ├── binary_operators_xor_right │ │ ├── out │ │ ├── in │ │ └── query.trickle │ ├── meta_and_use │ │ └── in │ └── branch_error_then_ok │ │ ├── out │ │ └── in ├── script_runtime_errors │ ├── _template │ │ ├── in │ │ ├── error.txt │ │ └── script.tremor │ ├── bad_binary │ │ ├── in │ │ └── script.tremor │ ├── bad_merge │ │ ├── in │ │ └── script.tremor │ ├── bad_merge2 │ │ ├── in │ │ └── script.tremor │ ├── bad_unary │ │ ├── in │ │ └── script.tremor │ ├── assign_expr │ │ ├── in │ │ └── script.tremor │ ├── assign_reserved │ │ ├── in │ │ └── script.tremor │ ├── bad_bitshift │ │ ├── in │ │ └── script.tremor │ ├── fold_bool_op │ │ ├── in │ │ └── script.tremor │ ├── meta_and_use │ │ ├── in │ │ └── script.tremor │ ├── missing_local │ │ ├── in │ │ └── script.tremor │ ├── recursion_limit │ │ └── in │ ├── undefined_local │ │ └── in │ ├── arr_bad_idx │ │ ├── in │ │ └── script.tremor │ ├── arr_bad_idx2 │ │ ├── in │ │ └── script.tremor │ ├── assign_const │ │ ├── in │ │ └── script.tremor │ ├── bad_fold_op │ │ ├── in │ │ └── script.tremor │ ├── bad_fold_op_record │ │ ├── in │ │ └── script.tremor │ ├── bad_fold_type │ │ ├── in │ │ └── script.tremor │ ├── error_after_heredoc │ │ ├── in │ │ └── script.tremor │ ├── fold_bool_op_imut │ │ ├── in │ │ └── script.tremor │ ├── fold_bool_or │ │ ├── in │ │ └── script.tremor │ ├── function_error_1 │ │ ├── in │ │ └── script.tremor │ ├── function_error_2 │ │ ├── in │ │ └── script.tremor │ ├── function_error_3 │ │ └── in │ ├── function_error_n │ │ └── in │ ├── match_bad_guard_type │ │ ├── in │ │ └── script.tremor │ ├── match_no_clause_hit │ │ ├── in │ │ └── script.tremor │ ├── merge_new_no_object │ │ ├── in │ │ └── script.tremor │ ├── obj_bad_key │ │ ├── in │ │ └── script.tremor │ ├── subslice_no_arr │ │ ├── in │ │ └── script.tremor │ ├── arith_bad_shift_3 │ │ ├── in │ │ └── script.tremor │ ├── bad_fold_op_imut │ │ ├── in │ │ └── script.tremor │ ├── bad_fold_op_record_imut │ │ └── in │ ├── bad_fold_type_imut │ │ ├── in │ │ └── script.tremor │ ├── bad_index_type │ │ ├── in │ │ └── script.tremor │ ├── fold_bool_or_imut │ │ ├── in │ │ └── script.tremor │ ├── merge_target_no_object │ │ ├── in │ │ └── script.tremor │ ├── non_arr_access │ │ ├── in │ │ └── script.tremor │ ├── non_arr_access2 │ │ ├── in │ │ └── script.tremor │ ├── non_obj_access │ │ ├── in │ │ └── script.tremor │ ├── non_obj_access2 │ │ ├── in │ │ └── script.tremor │ ├── obj_bad_key2 │ │ ├── in │ │ └── script.tremor │ ├── patch_key_exists │ │ ├── in │ │ └── script.tremor │ ├── patch_on_non_obj │ │ ├── in │ │ └── script.tremor │ ├── subslice_bad_end │ │ ├── in │ │ └── script.tremor │ ├── subslice_bad_start │ │ ├── in │ │ └── script.tremor │ ├── subslice_neg_start │ │ ├── in │ │ └── script.tremor │ ├── patch_copy_key_exists │ │ ├── in │ │ └── script.tremor │ ├── patch_move_key_exists │ │ ├── in │ │ └── script.tremor │ ├── subslice_end_lt_start │ │ ├── in │ │ └── script.tremor │ ├── subslice_out_of_bounds │ │ ├── in │ │ └── script.tremor │ ├── merge_assign_target_new_no_object │ │ ├── in │ │ └── script.tremor │ ├── patch_merge_on_non_object │ │ ├── in │ │ └── script.tremor │ ├── patch_update_key_missing │ │ ├── in │ │ └── script.tremor │ ├── merge_assign_target_target_no_object │ │ ├── in │ │ └── script.tremor │ └── subslice_and_idx_out_of_bounds │ │ ├── in │ │ └── script.tremor ├── .gitignore ├── query_errors │ ├── _template │ │ ├── error.txt │ │ └── query.trickle │ ├── pp_unrecognized_token │ │ └── query.trickle │ ├── pp_unrecognized_token2 │ │ └── query.trickle │ ├── pipeline_undefined │ │ └── query.trickle │ ├── pp_unrecognized_token3 │ │ └── query.trickle │ ├── pp_unrecognized_token4 │ │ └── query.trickle │ ├── bad_from │ │ └── query.trickle │ ├── bad_into │ │ └── query.trickle │ ├── pp_unrecognized_token5 │ │ ├── foo │ │ │ └── bar.tremor │ │ └── query.trickle │ ├── pp_embed_unrecognized_token5 │ │ └── foo │ │ │ └── bar.tremor │ ├── let_in_select │ │ ├── query.trickle │ │ └── error.re │ ├── local_in_select │ │ └── query.trickle │ ├── const_in_select │ │ ├── query.trickle │ │ └── error.re │ ├── aggr_arity │ │ └── query.trickle │ ├── aggr_in_aggr │ │ └── query.trickle │ ├── local_in_having │ │ └── query.trickle │ ├── local_in_where │ │ └── query.trickle │ └── local_in_group_by │ │ └── query.trickle ├── flow_errors │ ├── module_not_found │ │ └── flow.troy │ ├── flow_not_found │ │ └── flow.troy │ ├── connector_no_kind │ │ └── flow.troy │ └── connector_bad_kind │ │ └── flow.troy ├── script_warnings │ ├── _template │ │ ├── script.tremor │ │ └── warning.txt │ ├── lower_case_const │ │ └── script.tremor │ ├── nanotime │ │ └── script.tremor │ ├── match_no_default │ │ └── script.tremor │ ├── for_fold_op │ │ └── script.tremor │ ├── match_imut_no_default │ │ └── script.tremor │ └── array_perf │ │ └── script.tremor └── flows │ ├── args_in_create │ └── config.json │ ├── nested_with │ └── config.json │ └── consts_as_default_args │ ├── consts.troy │ ├── inner_consts.troy │ └── other_consts.troy ├── tremor-archive └── README.md ├── bench ├── empty-pipeline ├── empty-pipeline-influx ├── empty-pipeline-json ├── empty-pipeline-binflux ├── empty-pipeline-msgpack ├── empty-pipeline-two-inputs ├── passthrough │ ├── passthrough │ └── main.trickle ├── ws-json-empty-pipeline ├── lines-throughput │ └── main.trickle ├── real-workflow-throughput-msgpack ├── real-workflow-throughput-json-1-1-1 ├── real-workflow-throughput-json-1-4-1 ├── real-workflow-throughput-json-16-16-1 ├── real-workflow-throughput-json-2-1-1 ├── real-workflow-throughput-json-2-2-1 ├── real-workflow-throughput-json-32-32-1 ├── real-workflow-throughput-json-4-1-1 ├── real-workflow-throughput-json-4-4-1 ├── real-workflow-throughput-json-64-64-1 ├── real-workflow-throughput-json-8-1-1 ├── real-workflow-throughput-json-8-8-1 ├── tcp-throughput │ ├── blackhole.trickle │ └── blaster.trickle ├── ws-throughput │ ├── blackhole.trickle │ └── blaster.trickle ├── link.yaml ├── group_by │ └── main.trickle ├── group_by_each │ └── main.trickle ├── match.json.xz ├── recurse │ └── input.json └── group_by_evil │ └── main.trickle ├── docs ├── codecs │ ├── .gitignore │ └── _category_.yaml ├── connectors │ ├── .gitignore │ └── _category_.yaml ├── extractors │ ├── .gitignore │ └── __category__.yaml ├── operators │ └── .gitignore ├── preprocessors │ ├── .gitignore │ └── _category_.yaml ├── .gitignore └── postprocessors │ ├── .gitignore │ └── _category_.yaml ├── tremor-cli ├── .depignore ├── .gitignore ├── tests │ ├── api │ │ ├── .gitignore │ │ ├── data │ │ │ ├── bench-mapping.yaml │ │ │ ├── linked │ │ │ │ ├── mapping.yaml │ │ │ │ └── passthrough-pipeline.trickle │ │ │ ├── metronome-mapping.yaml │ │ │ ├── bench-mapping.json │ │ │ ├── metronome-offramp.yaml │ │ │ ├── bench-pipeline.trickle │ │ │ └── metronome-pipeline.trickle │ │ ├── tags.yaml │ │ └── after.yaml │ ├── bench │ │ ├── .gitignore │ │ ├── tags.yaml │ │ ├── arithmetics │ │ │ └── tags.yaml │ │ ├── passthrough │ │ │ └── tags.yaml │ │ ├── passthrough-json │ │ │ └── tags.yaml │ │ ├── passthrough-binflux │ │ │ └── tags.yaml │ │ ├── passthrough-influx │ │ │ └── tags.yaml │ │ ├── passthrough-statsd │ │ │ └── tags.yaml │ │ ├── passthrough-tremor │ │ │ └── tags.yaml │ │ ├── for-array │ │ │ └── tags.yaml │ │ ├── for-sum │ │ │ └── tags.yaml │ │ ├── passthrough-dogstatsd │ │ │ └── tags.yaml │ │ ├── passthrough-msgpack │ │ │ └── tags.yaml │ │ ├── throughput-tcp-json │ │ │ └── tags.yaml │ │ ├── for-record-fn │ │ │ └── tags.yaml │ │ ├── for-record │ │ │ └── tags.yaml │ │ ├── passthrough-two-inputs │ │ │ └── tags.yaml │ │ ├── throughput-logging-tcp-json │ │ │ └── tags.yaml │ │ ├── throughput-logging-json │ │ │ └── tags.yaml │ │ └── throughput-logging-msgpack │ │ │ └── tags.yaml │ ├── cli │ │ ├── data │ │ │ ├── input.json │ │ │ └── query_with_error.trickle │ │ ├── .gitignore │ │ └── tags.yaml │ ├── tags.json │ ├── .gitignore │ ├── integration │ │ ├── .gitignore │ │ ├── kv │ │ │ ├── .gitignore │ │ │ ├── tags.yaml │ │ │ └── reset.sh │ │ ├── dns │ │ │ ├── in.json │ │ │ ├── expected_out.json │ │ │ └── tags.yaml │ │ ├── blaster │ │ │ └── tags.yaml │ │ ├── elastic-empty │ │ │ ├── expected_err.json │ │ │ └── tags.yaml │ │ ├── tcp │ │ │ ├── .gitignore │ │ │ ├── tags.yaml │ │ │ ├── expected_client.json │ │ │ ├── in.json │ │ │ └── expected_server.json │ │ ├── tags.yaml │ │ ├── tcp-tls │ │ │ ├── .gitignore │ │ │ ├── tags.yaml │ │ │ ├── expected.json │ │ │ └── in.json │ │ ├── ws-tls │ │ │ ├── .gitignore │ │ │ ├── tags.yaml │ │ │ ├── expected.json │ │ │ └── in.json │ │ ├── ws │ │ │ ├── tags.yaml │ │ │ └── .gitignore │ │ ├── metronome │ │ │ ├── expected_out.json │ │ │ └── tags.yaml │ │ ├── file-connector │ │ │ └── tags.yaml │ │ ├── no-rules │ │ │ └── tags.yaml │ │ ├── stdlib │ │ │ └── tags.yaml │ │ ├── crononome │ │ │ ├── tags.yaml │ │ │ └── expected_out.json │ │ ├── elastic │ │ │ └── tags.yaml │ │ ├── select-window-gd │ │ │ ├── tags.yaml │ │ │ └── in.json │ │ ├── window-max-groups │ │ │ └── tags.yaml │ │ ├── cb-with-auto-ack-sink │ │ │ └── tags.yaml │ │ ├── quiescence-simple │ │ │ └── tags.yaml │ │ ├── udp-postprocessors │ │ │ ├── .gitignore │ │ │ └── tags.yaml │ │ ├── window-timeout │ │ │ └── tags.yaml │ │ ├── cb-drop-dead-ends │ │ │ └── tags.yaml │ │ ├── empty-line │ │ │ └── tags.yaml │ │ ├── file-connector-append │ │ │ ├── tags.yaml │ │ │ └── before │ │ │ │ └── prepare_input_file.sh │ │ ├── query-exit │ │ │ ├── expected.json │ │ │ ├── in.json │ │ │ └── tags.yaml │ │ ├── stdio │ │ │ ├── stdin │ │ │ └── tags.yaml │ │ ├── bad-rule-syntax │ │ │ └── tags.yaml │ │ ├── cb-pipeline-to-pipeline │ │ │ ├── tags.yaml │ │ │ └── in.json │ │ ├── clickhouse │ │ │ └── tags.yaml │ │ ├── elastic-sink-only │ │ │ └── tags.yaml │ │ ├── file-connector-overwrite │ │ │ └── tags.yaml │ │ ├── otel-client │ │ │ └── tags.yaml │ │ ├── rewrite-meta │ │ │ └── tags.yaml │ │ ├── string-codec │ │ │ └── tags.yaml │ │ ├── tcp-reuseport │ │ │ └── tags.yaml │ │ ├── udp-reuseport │ │ │ └── tags.yaml │ │ ├── elastic-verify-gd │ │ │ └── tags.yaml │ │ ├── kafka_connectors │ │ │ └── tags.yaml │ │ ├── query-for-locals │ │ │ └── tags.yaml │ │ ├── s3-yolo-cb │ │ │ ├── tags.yaml │ │ │ └── env.yaml │ │ ├── system-metrics │ │ │ └── tags.yaml │ │ ├── hygienic-runtime-errors │ │ │ └── tags.yaml │ │ ├── meta.yaml │ │ ├── unix-socket │ │ │ └── tags.yaml │ │ ├── unknown-connector │ │ │ └── tags.yaml │ │ ├── unknown-operator │ │ │ └── tags.yaml │ │ ├── large-json │ │ │ └── tags.yaml │ │ ├── s3-consistent-cb │ │ │ ├── tags.yaml │ │ │ └── env.yaml │ │ ├── http │ │ │ ├── expected.json │ │ │ ├── tags.yaml │ │ │ └── in.json │ │ ├── window-timeout-metadata │ │ │ └── tags.yaml │ │ ├── file-connector-streaming-compress │ │ │ └── tags.yaml │ │ ├── http-client-sink-only │ │ │ ├── in2.json │ │ │ └── tags.yaml │ │ └── tcp-server-source-only │ │ │ └── tags.yaml │ ├── fixtures │ │ └── resolve_tags │ │ │ └── a │ │ │ ├── tags.yaml │ │ │ └── b │ │ │ ├── c │ │ │ ├── tags.yaml │ │ │ ├── d │ │ │ │ ├── e │ │ │ │ │ ├── tags.yaml │ │ │ │ │ └── f │ │ │ │ │ │ └── tags.yaml │ │ │ │ └── tags.yaml │ │ │ ├── x │ │ │ │ └── tags.yaml │ │ │ └── y │ │ │ │ ├── g │ │ │ │ └── tags.yaml │ │ │ │ └── tags.yaml │ │ │ └── tags.yaml │ └── stdlib │ │ ├── std │ │ ├── tags.yaml │ │ └── meta.yaml │ │ └── tremor │ │ ├── tags.yaml │ │ └── meta.yaml └── src │ └── _template │ └── main.troy ├── tremor-api └── .gitignore ├── tremor-pipeline └── .gitignore ├── tremor-script ├── priv │ └── .gitignore ├── tests │ └── modules │ │ ├── there.tremor │ │ ├── nest │ │ ├── there.tremor │ │ └── nest │ │ │ └── there.tremor │ │ └── loading │ │ └── twice.tremor └── lib │ └── google │ └── cloud.tremor ├── static └── language │ ├── epilog │ ├── query.md │ ├── addexprimut.md │ ├── andexprimut.md │ ├── cmpexprimut.md │ ├── mulexprimut.md │ ├── patchoperations.md │ ├── argsclause.md │ ├── creationwithend.md │ ├── windowkind.md │ ├── withclause.md │ ├── withendclause.md │ ├── embeddedscript.md │ ├── groupdefs_.md │ ├── unarysimpleexprimut.md │ ├── invokeargs.md │ ├── bitandexprimut.md │ ├── bitorexprimut.md │ ├── bitxorexprimut.md │ ├── eqexprimut.md │ ├── nil.md │ ├── orexprimut.md │ ├── patternfields.md │ ├── xorexprimut.md │ ├── bitshiftexprimut.md │ ├── groupdefs.md │ ├── define.md │ ├── embeddedscriptcontent.md │ ├── invoke.md │ ├── windows.md │ ├── pipeline.md │ └── connectorkind.md │ └── prolog │ ├── for.md │ ├── maybeport.md │ ├── withexpr.md │ ├── effectors.md │ ├── nil.md │ ├── patch.md │ ├── bool.md │ ├── forimut.md │ ├── match.md │ ├── define.md │ ├── exprimut.md │ ├── exprpath.md │ ├── fields.md │ ├── invoke.md │ ├── matchimut.md │ ├── ports.md │ ├── whenclause.md │ ├── window.md │ ├── argsendclause.md │ ├── argspath.md │ ├── block.md │ ├── flowstmtinner.md │ ├── ident.md │ ├── int.md │ ├── invokeargs.md │ ├── argswithend.md │ ├── constpath.md │ ├── create.md │ ├── doccomment_.md │ ├── modcomment_.md │ ├── stmts.md │ ├── stringpart.md │ ├── connecttopipeline.md │ ├── embeddedscriptimut.md │ ├── float.md │ ├── fnargs.md │ ├── groupdefs.md │ ├── groupdefs_.md │ ├── literal.md │ ├── localpath.md │ ├── merge.md │ ├── withexprs.md │ ├── complexexprimut.md │ ├── connect.md │ ├── connectfrompipeline.md │ ├── connecttoconnector.md │ ├── definitionargs.md │ ├── forcaseclause.md │ ├── predicatesimut.md │ ├── recur.md │ ├── withendclause.md │ ├── connectfromconnector.md │ ├── embeddedscriptcontent.md │ ├── predicates.md │ ├── windowdefn.md │ ├── windows.md │ └── blockimut.md ├── tremor-script-nif └── .gitignore ├── packaging ├── builder-images │ └── .dockerignore └── distribution │ └── README.md ├── tremor-common ├── .gitignore └── README.md ├── .actrc ├── .markdownlint.yaml ├── .github ├── scripts │ └── lcov-wrap.sh └── checks │ └── llvm-cov-wrapper ├── CODEOWNERS ├── rust-toolchain ├── .checkignore └── .gitpod.Dockerfile /out.log: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /clippy.toml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /demo/logs/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | -------------------------------------------------------------------------------- /tests/queries/drop_event/out: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/scripts/eq/in: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /tests/scripts/jump/in: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /tests/scripts/null/in: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /tests/scripts/range/in: -------------------------------------------------------------------------------- 1 | 0 2 | -------------------------------------------------------------------------------- /tremor-archive/README.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /bench/empty-pipeline: -------------------------------------------------------------------------------- 1 | passthrough -------------------------------------------------------------------------------- /docs/codecs/.gitignore: -------------------------------------------------------------------------------- 1 | *.md 2 | -------------------------------------------------------------------------------- /tests/queries/initial_state/in: -------------------------------------------------------------------------------- 1 | 19 -------------------------------------------------------------------------------- /tests/queries/initial_state/out: -------------------------------------------------------------------------------- 1 | 42 -------------------------------------------------------------------------------- /tests/scripts/binary/in: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /tests/scripts/binary/out: -------------------------------------------------------------------------------- 1 | true 2 | -------------------------------------------------------------------------------- /tests/scripts/bit_ops/in: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /tests/scripts/bit_shift/in: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /tests/scripts/const_basic/in: -------------------------------------------------------------------------------- 1 | 0 -------------------------------------------------------------------------------- /tests/scripts/const_fn/in: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /tests/scripts/const_fn/out: -------------------------------------------------------------------------------- 1 | 2 2 | -------------------------------------------------------------------------------- /tests/scripts/consts/in: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /tests/scripts/dummy/in: -------------------------------------------------------------------------------- 1 | true 2 | -------------------------------------------------------------------------------- /tests/scripts/dummy/out: -------------------------------------------------------------------------------- 1 | true 2 | -------------------------------------------------------------------------------- /tests/scripts/emit_port/in: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /tests/scripts/escape/in: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /tests/scripts/escape/out: -------------------------------------------------------------------------------- 1 | "\\[\b\f" -------------------------------------------------------------------------------- /tests/scripts/expr_path/in: -------------------------------------------------------------------------------- 1 | 0 2 | -------------------------------------------------------------------------------- /tests/scripts/fold_number/out: -------------------------------------------------------------------------------- 1 | 10 -------------------------------------------------------------------------------- /tests/scripts/heredoc/in: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /tests/scripts/let_field/in: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /tests/scripts/logical/in: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /tests/scripts/origin/in: -------------------------------------------------------------------------------- 1 | 0 2 | -------------------------------------------------------------------------------- /tests/scripts/pp_alias0/in: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /tests/scripts/pp_alias1/in: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /tests/scripts/pp_alias2/in: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /tests/scripts/pp_alias3/in: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /tests/scripts/pp_nest0/in: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /tests/scripts/pp_nest1/in: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /tests/scripts/pp_nest2/in: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /tests/scripts/pp_nest3/in: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /tests/scripts/pp_nest4/in: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /tests/scripts/presence/in: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /tests/scripts/record/in: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /tests/scripts/subslice/out: -------------------------------------------------------------------------------- 1 | 2 2 | -------------------------------------------------------------------------------- /tests/scripts/unary/in: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /tremor-cli/.depignore: -------------------------------------------------------------------------------- 1 | snmalloc-sys -------------------------------------------------------------------------------- /tremor-cli/.gitignore: -------------------------------------------------------------------------------- 1 | report.txt -------------------------------------------------------------------------------- /bench/empty-pipeline-influx: -------------------------------------------------------------------------------- 1 | passthrough -------------------------------------------------------------------------------- /bench/empty-pipeline-json: -------------------------------------------------------------------------------- 1 | passthrough -------------------------------------------------------------------------------- /docs/codecs/_category_.yaml: -------------------------------------------------------------------------------- 1 | position: 2 -------------------------------------------------------------------------------- /docs/connectors/.gitignore: -------------------------------------------------------------------------------- 1 | *.md 2 | -------------------------------------------------------------------------------- /docs/extractors/.gitignore: -------------------------------------------------------------------------------- 1 | *.md 2 | -------------------------------------------------------------------------------- /docs/operators/.gitignore: -------------------------------------------------------------------------------- 1 | *.md 2 | -------------------------------------------------------------------------------- /docs/preprocessors/.gitignore: -------------------------------------------------------------------------------- 1 | *.md 2 | -------------------------------------------------------------------------------- /tests/data/input.txt: -------------------------------------------------------------------------------- 1 | snot 2 | badger -------------------------------------------------------------------------------- /tests/scripts/binary_binary/in: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /tests/scripts/binary_float/in: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /tests/scripts/binary_int/in: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /tests/scripts/binary_not/in: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /tests/scripts/binary_string/in: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /tests/scripts/binary_uint/in: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /tests/scripts/emit_port/out: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /tests/scripts/fold_array/in: -------------------------------------------------------------------------------- 1 | [1,2,3,4] -------------------------------------------------------------------------------- /tests/scripts/fold_array/out: -------------------------------------------------------------------------------- 1 | [2,3,4,5] -------------------------------------------------------------------------------- /tests/scripts/fold_number/in: -------------------------------------------------------------------------------- 1 | [1,2,3,4] -------------------------------------------------------------------------------- /tests/scripts/fold_number_imut/out: -------------------------------------------------------------------------------- 1 | 10 -------------------------------------------------------------------------------- /tests/scripts/fold_number_op/out: -------------------------------------------------------------------------------- 1 | 24 -------------------------------------------------------------------------------- /tests/scripts/fold_record/in: -------------------------------------------------------------------------------- 1 | [1,2,3,4] -------------------------------------------------------------------------------- /tests/scripts/multi_case/in: -------------------------------------------------------------------------------- 1 | true 2 | -------------------------------------------------------------------------------- /tests/scripts/multi_case/out: -------------------------------------------------------------------------------- 1 | 2 2 | -------------------------------------------------------------------------------- /tests/scripts/multiline/out: -------------------------------------------------------------------------------- 1 | "ok" 2 | -------------------------------------------------------------------------------- /tests/scripts/null_match/in: -------------------------------------------------------------------------------- 1 | null 2 | -------------------------------------------------------------------------------- /tests/scripts/only_const/in: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /tests/scripts/state_null/out: -------------------------------------------------------------------------------- 1 | null 2 | -------------------------------------------------------------------------------- /tests/scripts/string_concat/in: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /tremor-api/.gitignore: -------------------------------------------------------------------------------- 1 | coyote.html 2 | -------------------------------------------------------------------------------- /tremor-cli/tests/api/.gitignore: -------------------------------------------------------------------------------- 1 | *.log -------------------------------------------------------------------------------- /tremor-pipeline/.gitignore: -------------------------------------------------------------------------------- 1 | target 2 | -------------------------------------------------------------------------------- /tremor-script/priv/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | -------------------------------------------------------------------------------- /bench/empty-pipeline-binflux: -------------------------------------------------------------------------------- 1 | passthrough -------------------------------------------------------------------------------- /bench/empty-pipeline-msgpack: -------------------------------------------------------------------------------- 1 | passthrough -------------------------------------------------------------------------------- /bench/empty-pipeline-two-inputs: -------------------------------------------------------------------------------- 1 | passthrough -------------------------------------------------------------------------------- /bench/passthrough/passthrough: -------------------------------------------------------------------------------- 1 | passthrough -------------------------------------------------------------------------------- /bench/ws-json-empty-pipeline: -------------------------------------------------------------------------------- 1 | passthrough -------------------------------------------------------------------------------- /docs/.gitignore: -------------------------------------------------------------------------------- 1 | language 2 | stdlib 3 | -------------------------------------------------------------------------------- /docs/connectors/_category_.yaml: -------------------------------------------------------------------------------- 1 | position: 1 -------------------------------------------------------------------------------- /docs/postprocessors/.gitignore: -------------------------------------------------------------------------------- 1 | *.md 2 | -------------------------------------------------------------------------------- /static/language/epilog/query.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /tests/queries/guard_having/out: -------------------------------------------------------------------------------- 1 | 1 2 | 3 3 | -------------------------------------------------------------------------------- /tests/queries/guard_where/out: -------------------------------------------------------------------------------- 1 | 2 2 | 4 3 | -------------------------------------------------------------------------------- /tests/queries/history/in: -------------------------------------------------------------------------------- 1 | 1 2 | 2 3 | 3 4 | -------------------------------------------------------------------------------- /tests/queries/pp_fn/out: -------------------------------------------------------------------------------- 1 | 1 2 | 2 3 | 3 4 | -------------------------------------------------------------------------------- /tests/script_errors/_template/error.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/scripts/array_paths/out: -------------------------------------------------------------------------------- 1 | "pong" 2 | -------------------------------------------------------------------------------- /tests/scripts/dummy/script.tremor: -------------------------------------------------------------------------------- 1 | event 2 | -------------------------------------------------------------------------------- /tests/scripts/empty_subslice/out: -------------------------------------------------------------------------------- 1 | true 2 | -------------------------------------------------------------------------------- /tests/scripts/escape/script.tremor: -------------------------------------------------------------------------------- 1 | "\\[\b\f" -------------------------------------------------------------------------------- /tests/scripts/extractor_dissect/in: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /tests/scripts/fold_array_imut/in: -------------------------------------------------------------------------------- 1 | [1,2,3,4] -------------------------------------------------------------------------------- /tests/scripts/fold_array_imut/out: -------------------------------------------------------------------------------- 1 | [2,3,4,5] -------------------------------------------------------------------------------- /tests/scripts/fold_number_imut/in: -------------------------------------------------------------------------------- 1 | [1,2,3,4] -------------------------------------------------------------------------------- /tests/scripts/fold_number_op/in: -------------------------------------------------------------------------------- 1 | [1,2,3,4] -------------------------------------------------------------------------------- /tests/scripts/fold_number_op_imut/out: -------------------------------------------------------------------------------- 1 | 24 -------------------------------------------------------------------------------- /tests/scripts/fold_record_imut/in: -------------------------------------------------------------------------------- 1 | [1,2,3,4] -------------------------------------------------------------------------------- /tests/scripts/null_match/out: -------------------------------------------------------------------------------- 1 | "is null" 2 | -------------------------------------------------------------------------------- /tests/scripts/only_const/out: -------------------------------------------------------------------------------- 1 | "that" 2 | -------------------------------------------------------------------------------- /tests/scripts/patch_assign_target/in: -------------------------------------------------------------------------------- 1 | 0 2 | -------------------------------------------------------------------------------- /tests/scripts/pp_inline_nest1/in: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /tests/scripts/regex/out: -------------------------------------------------------------------------------- 1 | {"test": {}} 2 | -------------------------------------------------------------------------------- /tests/scripts/subslice/in: -------------------------------------------------------------------------------- 1 | [0, 1, 2] 2 | -------------------------------------------------------------------------------- /tests/scripts/subslice_repeated/out: -------------------------------------------------------------------------------- 1 | 9 2 | -------------------------------------------------------------------------------- /tremor-cli/tests/bench/.gitignore: -------------------------------------------------------------------------------- 1 | */*.log -------------------------------------------------------------------------------- /tremor-cli/tests/cli/data/input.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /tremor-cli/tests/tags.json: -------------------------------------------------------------------------------- 1 | [ "all" ] 2 | -------------------------------------------------------------------------------- /tremor-script-nif/.gitignore: -------------------------------------------------------------------------------- 1 | Cargo.lock 2 | -------------------------------------------------------------------------------- /docs/postprocessors/_category_.yaml: -------------------------------------------------------------------------------- 1 | position: 3 -------------------------------------------------------------------------------- /docs/preprocessors/_category_.yaml: -------------------------------------------------------------------------------- 1 | position: 4 -------------------------------------------------------------------------------- /tests/queries/pp_const/out: -------------------------------------------------------------------------------- 1 | 1 2 | 2 3 | 3 4 | -------------------------------------------------------------------------------- /tests/queries/pp_operator/in: -------------------------------------------------------------------------------- 1 | 1 2 | 2 3 | 3 4 | -------------------------------------------------------------------------------- /tests/queries/pp_script/out: -------------------------------------------------------------------------------- 1 | 3 2 | 4 3 | 5 4 | -------------------------------------------------------------------------------- /tests/query_runtime_errors/_template/error.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/query_runtime_errors/script_bad_port/in: -------------------------------------------------------------------------------- 1 | 1 -------------------------------------------------------------------------------- /tests/script_errors/single_quote/script.tremor: -------------------------------------------------------------------------------- 1 | " -------------------------------------------------------------------------------- /tests/script_runtime_errors/_template/in: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /tests/script_runtime_errors/bad_binary/in: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /tests/script_runtime_errors/bad_merge/in: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /tests/script_runtime_errors/bad_merge2/in: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /tests/script_runtime_errors/bad_unary/in: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /tests/scripts/_template/script.tremor: -------------------------------------------------------------------------------- 1 | event 2 | -------------------------------------------------------------------------------- /tests/scripts/assign_and_path_match/in: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /tests/scripts/binary_binary_string/in: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /tests/scripts/binary_string_binary/in: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /tests/scripts/bytes_tcp/in: -------------------------------------------------------------------------------- 1 | 0 2 | 23 3 | 42 4 | -------------------------------------------------------------------------------- /tests/scripts/drop/out: -------------------------------------------------------------------------------- 1 | 0 2 | 2 3 | 4 4 | 6 5 | 8 -------------------------------------------------------------------------------- /tests/scripts/empty_subslice/in: -------------------------------------------------------------------------------- 1 | [0, 1, 2] 2 | -------------------------------------------------------------------------------- /tests/scripts/fold_array_initial/in: -------------------------------------------------------------------------------- 1 | [1,2,3,4] -------------------------------------------------------------------------------- /tests/scripts/fold_array_initial/out: -------------------------------------------------------------------------------- 1 | [2,3,4,5] -------------------------------------------------------------------------------- /tests/scripts/fold_array_initial_op/in: -------------------------------------------------------------------------------- 1 | [1,2,3,4] -------------------------------------------------------------------------------- /tests/scripts/fold_number_op_imut/in: -------------------------------------------------------------------------------- 1 | [1,2,3,4] -------------------------------------------------------------------------------- /tests/scripts/glob/out: -------------------------------------------------------------------------------- 1 | { "test" : true } 2 | -------------------------------------------------------------------------------- /tests/scripts/heredoc_regression/in: -------------------------------------------------------------------------------- 1 | "snot" 2 | -------------------------------------------------------------------------------- /tests/scripts/let_field/out: -------------------------------------------------------------------------------- 1 | {"key":"value"} 2 | -------------------------------------------------------------------------------- /tests/scripts/merge/in: -------------------------------------------------------------------------------- 1 | {"aa": 1, "bb": 2} 2 | -------------------------------------------------------------------------------- /tests/scripts/passthrough/script.tremor: -------------------------------------------------------------------------------- 1 | emit 2 | -------------------------------------------------------------------------------- /tests/scripts/pp_alias0/out: -------------------------------------------------------------------------------- 1 | "snot badger" 2 | -------------------------------------------------------------------------------- /tests/scripts/pp_alias1/out: -------------------------------------------------------------------------------- 1 | "snot badger" 2 | -------------------------------------------------------------------------------- /tests/scripts/pp_alias2/out: -------------------------------------------------------------------------------- 1 | "snot badger" 2 | -------------------------------------------------------------------------------- /tests/scripts/pp_alias3/out: -------------------------------------------------------------------------------- 1 | "snot badger" 2 | -------------------------------------------------------------------------------- /tests/scripts/pp_nest0/out: -------------------------------------------------------------------------------- 1 | "snot badger" 2 | -------------------------------------------------------------------------------- /tests/scripts/pp_nest1/out: -------------------------------------------------------------------------------- 1 | "snot badger" 2 | -------------------------------------------------------------------------------- /tests/scripts/pp_nest2/out: -------------------------------------------------------------------------------- 1 | "snot badger" 2 | -------------------------------------------------------------------------------- /tests/scripts/pp_nest3/out: -------------------------------------------------------------------------------- 1 | "snot badger" 2 | -------------------------------------------------------------------------------- /tests/scripts/pp_nest4/out: -------------------------------------------------------------------------------- 1 | "snot badger" 2 | -------------------------------------------------------------------------------- /tests/scripts/record/out: -------------------------------------------------------------------------------- 1 | {"const": "record"} 2 | -------------------------------------------------------------------------------- /tests/scripts/size_functions/in: -------------------------------------------------------------------------------- 1 | 1 2 | 1.5 3 | 7 -------------------------------------------------------------------------------- /tremor-cli/tests/.gitignore: -------------------------------------------------------------------------------- 1 | *.log 2 | *.pid 3 | -------------------------------------------------------------------------------- /tremor-cli/tests/cli/.gitignore: -------------------------------------------------------------------------------- 1 | *.log 2 | test -------------------------------------------------------------------------------- /tremor-cli/tests/integration/.gitignore: -------------------------------------------------------------------------------- 1 | */*.log -------------------------------------------------------------------------------- /tremor-cli/tests/integration/kv/.gitignore: -------------------------------------------------------------------------------- 1 | /data/ -------------------------------------------------------------------------------- /packaging/builder-images/.dockerignore: -------------------------------------------------------------------------------- 1 | README.md 2 | -------------------------------------------------------------------------------- /tests/.gitignore: -------------------------------------------------------------------------------- 1 | localhost.cert 2 | localhost.key 3 | -------------------------------------------------------------------------------- /tests/queries/args_nesting_no_leakage/in: -------------------------------------------------------------------------------- 1 | 1 2 | 2 3 | 3 -------------------------------------------------------------------------------- /tests/queries/guard_having/in: -------------------------------------------------------------------------------- 1 | 1 2 | 2 3 | 3 4 | 4 5 | -------------------------------------------------------------------------------- /tests/queries/guard_where/in: -------------------------------------------------------------------------------- 1 | 1 2 | 2 3 | 3 4 | 4 5 | -------------------------------------------------------------------------------- /tests/queries/pp_alias_operator/in: -------------------------------------------------------------------------------- 1 | 1 2 | 2 3 | 3 4 | -------------------------------------------------------------------------------- /tests/queries/pp_alias_script/out: -------------------------------------------------------------------------------- 1 | 3 2 | 4 3 | 5 4 | -------------------------------------------------------------------------------- /tests/queries/pp_const/in: -------------------------------------------------------------------------------- 1 | "🔧" 2 | "🏫" 3 | "👷" 4 | -------------------------------------------------------------------------------- /tests/queries/pp_fn/in: -------------------------------------------------------------------------------- 1 | "🔧" 2 | "🏫" 3 | "👷" 4 | -------------------------------------------------------------------------------- /tests/query_errors/_template/error.txt: -------------------------------------------------------------------------------- 1 | UPDATE ME 2 | -------------------------------------------------------------------------------- /tests/query_runtime_errors/script_bad_port/error.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/script_errors/invalid_utf8_3/script.tremor: -------------------------------------------------------------------------------- 1 | "\u0 -------------------------------------------------------------------------------- /tests/script_errors/lexer_ngt/script.tremor: -------------------------------------------------------------------------------- 1 | !>= 2 | -------------------------------------------------------------------------------- /tests/script_errors/tailing_gt/script.tremor: -------------------------------------------------------------------------------- 1 | event > -------------------------------------------------------------------------------- /tests/script_runtime_errors/_template/error.txt: -------------------------------------------------------------------------------- 1 | snot -------------------------------------------------------------------------------- /tests/script_runtime_errors/assign_expr/in: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /tests/script_runtime_errors/assign_reserved/in: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /tests/script_runtime_errors/bad_bitshift/in: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /tests/script_runtime_errors/fold_bool_op/in: -------------------------------------------------------------------------------- 1 | [true, 42] -------------------------------------------------------------------------------- /tests/script_runtime_errors/meta_and_use/in: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /tests/script_runtime_errors/missing_local/in: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /tests/script_runtime_errors/recursion_limit/in: -------------------------------------------------------------------------------- 1 | 1 2 | -------------------------------------------------------------------------------- /tests/script_runtime_errors/undefined_local/in: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /tests/scripts/assign_move/out: -------------------------------------------------------------------------------- 1 | {"k":2,"v":"two"} 2 | -------------------------------------------------------------------------------- /tests/scripts/binary_not/out: -------------------------------------------------------------------------------- 1 | 18446744073709551603 2 | -------------------------------------------------------------------------------- /tests/scripts/bytes_create/in: -------------------------------------------------------------------------------- 1 | "snot" 2 | "badger" 3 | -------------------------------------------------------------------------------- /tests/scripts/const_in_const_lookup/in: -------------------------------------------------------------------------------- 1 | 0 2 | 1 3 | -------------------------------------------------------------------------------- /tests/scripts/const_string_interpolation/in: -------------------------------------------------------------------------------- 1 | 0 2 | -------------------------------------------------------------------------------- /tests/scripts/fold_array_initial_imut/in: -------------------------------------------------------------------------------- 1 | [1,2,3,4] -------------------------------------------------------------------------------- /tests/scripts/fold_array_initial_imut/out: -------------------------------------------------------------------------------- 1 | [2,3,4,5] -------------------------------------------------------------------------------- /tests/scripts/fold_array_initial_op/out: -------------------------------------------------------------------------------- 1 | [1,2,3,4,5] -------------------------------------------------------------------------------- /tests/scripts/fold_array_initial_op_imut/in: -------------------------------------------------------------------------------- 1 | [1,2,3,4] -------------------------------------------------------------------------------- /tests/scripts/glob/in: -------------------------------------------------------------------------------- 1 | { "test" : "INFO stuff" } 2 | -------------------------------------------------------------------------------- /tests/scripts/null/out: -------------------------------------------------------------------------------- 1 | {"eq": true, "neq": false} 2 | -------------------------------------------------------------------------------- /tests/scripts/pp_inline_nest1/out: -------------------------------------------------------------------------------- 1 | "snot badger" 2 | -------------------------------------------------------------------------------- /tests/scripts/simple_match/out: -------------------------------------------------------------------------------- 1 | {"snot": "ger"} 2 | -------------------------------------------------------------------------------- /tests/scripts/string_concat/out: -------------------------------------------------------------------------------- 1 | "snot badger" 2 | -------------------------------------------------------------------------------- /tests/scripts/string_interpolation_escaped/in: -------------------------------------------------------------------------------- 1 | 0 2 | -------------------------------------------------------------------------------- /tests/scripts/string_interpolation_nested/in: -------------------------------------------------------------------------------- 1 | 0 2 | -------------------------------------------------------------------------------- /tests/scripts/string_interpolation_nested/out: -------------------------------------------------------------------------------- 1 | "7" 2 | -------------------------------------------------------------------------------- /tests/scripts/string_interpolation_tailing/in: -------------------------------------------------------------------------------- 1 | 0 2 | -------------------------------------------------------------------------------- /tremor-cli/tests/integration/dns/in.json: -------------------------------------------------------------------------------- 1 | "localhost" -------------------------------------------------------------------------------- /tests/flow_errors/module_not_found/flow.troy: -------------------------------------------------------------------------------- 1 | use snot; 2 | -------------------------------------------------------------------------------- /tests/queries/args_nesting_no_leakage/out: -------------------------------------------------------------------------------- 1 | {} 2 | {} 3 | {} -------------------------------------------------------------------------------- /tests/queries/args_nesting_redefine/in: -------------------------------------------------------------------------------- 1 | 42 2 | 42 3 | 42 -------------------------------------------------------------------------------- /tests/queries/pipeline_nested_script/out: -------------------------------------------------------------------------------- 1 | 3 2 | 4 3 | 5 4 | -------------------------------------------------------------------------------- /tests/queries/pp_win/out: -------------------------------------------------------------------------------- 1 | [1, 2] 2 | [3, 4] 3 | [5, 6] 4 | -------------------------------------------------------------------------------- /tests/query_runtime_errors/bad_state_window_return/in: -------------------------------------------------------------------------------- 1 | 1 -------------------------------------------------------------------------------- /tests/query_runtime_errors/bad_state_window_return/out: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/query_runtime_errors/bad_vec_state_window_return/in: -------------------------------------------------------------------------------- 1 | 1 -------------------------------------------------------------------------------- /tests/query_runtime_errors/bad_vec_state_window_return/out: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/query_runtime_errors/binary_operators_and_left/out: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/query_runtime_errors/binary_operators_and_right/out: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/query_runtime_errors/binary_operators_or_left/out: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/query_runtime_errors/binary_operators_or_right/out: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/query_runtime_errors/binary_operators_xor_left/out: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/query_runtime_errors/binary_operators_xor_right/out: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/query_runtime_errors/meta_and_use/in: -------------------------------------------------------------------------------- 1 | 1 2 | 2 3 | 3 -------------------------------------------------------------------------------- /tests/script_errors/invalid_utf8_1/script.tremor: -------------------------------------------------------------------------------- 1 | "\u000" -------------------------------------------------------------------------------- /tests/script_errors/lexer_diamond/script.tremor: -------------------------------------------------------------------------------- 1 | <> 2 | -------------------------------------------------------------------------------- /tests/script_runtime_errors/arr_bad_idx/in: -------------------------------------------------------------------------------- 1 | [1, 2, 3] 2 | -------------------------------------------------------------------------------- /tests/script_runtime_errors/arr_bad_idx2/in: -------------------------------------------------------------------------------- 1 | [1, 2, 3] 2 | -------------------------------------------------------------------------------- /tests/script_runtime_errors/assign_const/in: -------------------------------------------------------------------------------- 1 | "snot" 2 | -------------------------------------------------------------------------------- /tests/script_runtime_errors/bad_fold_op/in: -------------------------------------------------------------------------------- 1 | [1,2,3] 2 | -------------------------------------------------------------------------------- /tests/script_runtime_errors/bad_fold_op_record/in: -------------------------------------------------------------------------------- 1 | {"k":"v"} -------------------------------------------------------------------------------- /tests/script_runtime_errors/bad_fold_type/in: -------------------------------------------------------------------------------- 1 | [1,2] 2 | -------------------------------------------------------------------------------- /tests/script_runtime_errors/error_after_heredoc/in: -------------------------------------------------------------------------------- 1 | [] 2 | -------------------------------------------------------------------------------- /tests/script_runtime_errors/fold_bool_op_imut/in: -------------------------------------------------------------------------------- 1 | [true, 42] -------------------------------------------------------------------------------- /tests/script_runtime_errors/fold_bool_or/in: -------------------------------------------------------------------------------- 1 | [false, 42] -------------------------------------------------------------------------------- /tests/script_runtime_errors/function_error_1/in: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /tests/script_runtime_errors/function_error_2/in: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /tests/script_runtime_errors/function_error_3/in: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /tests/script_runtime_errors/function_error_n/in: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /tests/script_runtime_errors/match_bad_guard_type/in: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /tests/script_runtime_errors/match_no_clause_hit/in: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /tests/script_runtime_errors/merge_new_no_object/in: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /tests/script_runtime_errors/obj_bad_key/in: -------------------------------------------------------------------------------- 1 | {"snot": 7} 2 | -------------------------------------------------------------------------------- /tests/script_runtime_errors/subslice_no_arr/in: -------------------------------------------------------------------------------- 1 | "snot" 2 | -------------------------------------------------------------------------------- /tests/script_warnings/_template/script.tremor: -------------------------------------------------------------------------------- 1 | event 2 | -------------------------------------------------------------------------------- /tests/script_warnings/_template/warning.txt: -------------------------------------------------------------------------------- 1 | UPDATE ME 2 | -------------------------------------------------------------------------------- /tests/scripts/array_pattern/out: -------------------------------------------------------------------------------- 1 | [[1,2],[5,2],[7,{}]] 2 | -------------------------------------------------------------------------------- /tests/scripts/assign_move/in: -------------------------------------------------------------------------------- 1 | ["zero", "one", "two"] 2 | -------------------------------------------------------------------------------- /tests/scripts/base64/out: -------------------------------------------------------------------------------- 1 | {"test": "🌊 snot badger"} 2 | -------------------------------------------------------------------------------- /tests/scripts/const_basic/out: -------------------------------------------------------------------------------- 1 | [1,"two",[3],{"four":4},5.0] -------------------------------------------------------------------------------- /tests/scripts/const_expr_path_non_const_segment/in: -------------------------------------------------------------------------------- 1 | 0 2 | -------------------------------------------------------------------------------- /tests/scripts/consts/out: -------------------------------------------------------------------------------- 1 | {"this was": ["a", "const"]} 2 | -------------------------------------------------------------------------------- /tests/scripts/emit_port/script.tremor: -------------------------------------------------------------------------------- 1 | emit => "out" 2 | -------------------------------------------------------------------------------- /tests/scripts/fold_array_initial_op_imut/out: -------------------------------------------------------------------------------- 1 | [1,2,3,4,5] -------------------------------------------------------------------------------- /tests/scripts/fold_record/out: -------------------------------------------------------------------------------- 1 | {"0":2,"1":3,"2":4,"3":5} -------------------------------------------------------------------------------- /tests/scripts/kv/in: -------------------------------------------------------------------------------- 1 | { "test" : "foo:bar snot:badger" } 2 | -------------------------------------------------------------------------------- /tests/scripts/kv/out: -------------------------------------------------------------------------------- 1 | {"foo":"bar", "snot":"badger"} 2 | -------------------------------------------------------------------------------- /tests/scripts/merge/out: -------------------------------------------------------------------------------- 1 | {"aa":null, "bb": 3, "cc": 2} 2 | -------------------------------------------------------------------------------- /tests/scripts/record/script.tremor: -------------------------------------------------------------------------------- 1 | {"const": "record"} 2 | -------------------------------------------------------------------------------- /tests/scripts/role_map/in: -------------------------------------------------------------------------------- 1 | "🔧" 2 | "🏫" 3 | "snot" 4 | -------------------------------------------------------------------------------- /tests/scripts/state_null/script.tremor: -------------------------------------------------------------------------------- 1 | emit state; 2 | -------------------------------------------------------------------------------- /tests/scripts/string_interpolation_escaped_hash/in: -------------------------------------------------------------------------------- 1 | 0 2 | -------------------------------------------------------------------------------- /tests/scripts/string_interpolation_tailing/out: -------------------------------------------------------------------------------- 1 | "{1}" 2 | -------------------------------------------------------------------------------- /tests/scripts/subslice/script.tremor: -------------------------------------------------------------------------------- 1 | event[1:3][1] 2 | -------------------------------------------------------------------------------- /tremor-cli/tests/fixtures/resolve_tags/a/tags.yaml: -------------------------------------------------------------------------------- 1 | - a 2 | -------------------------------------------------------------------------------- /tremor-cli/tests/integration/blaster/tags.yaml: -------------------------------------------------------------------------------- 1 | ["blaster"] -------------------------------------------------------------------------------- /tremor-common/.gitignore: -------------------------------------------------------------------------------- 1 | .a.file.that.will.get.deleted 2 | -------------------------------------------------------------------------------- /tests/flows/args_in_create/config.json: -------------------------------------------------------------------------------- 1 | { "ival": 1000000 } 2 | -------------------------------------------------------------------------------- /tests/flows/nested_with/config.json: -------------------------------------------------------------------------------- 1 | { "ival": 1000000 } 2 | -------------------------------------------------------------------------------- /tests/queries/pipeline_complex_args/in: -------------------------------------------------------------------------------- 1 | {"key": "value"} 2 | -------------------------------------------------------------------------------- /tests/queries/pipeline_nested_operator/in: -------------------------------------------------------------------------------- 1 | 1 2 | 2 3 | 3 4 | -------------------------------------------------------------------------------- /tests/queries/pp_alias_win/out: -------------------------------------------------------------------------------- 1 | [1, 2] 2 | [3, 4] 3 | [5, 6] 4 | -------------------------------------------------------------------------------- /tests/script_errors/_template/script.tremor: -------------------------------------------------------------------------------- 1 | event + snot 2 | -------------------------------------------------------------------------------- /tests/script_errors/bin_invalid_bits/script.tremor: -------------------------------------------------------------------------------- 1 | <> -------------------------------------------------------------------------------- /tests/script_errors/lexer_invalid_float_exp/script.tremor: -------------------------------------------------------------------------------- 1 | 12.0e -------------------------------------------------------------------------------- /tests/script_errors/lexer_unterminated_heredoc/script.tremor: -------------------------------------------------------------------------------- 1 | """ -------------------------------------------------------------------------------- /tests/script_errors/tailing_heredoc/script.tremor: -------------------------------------------------------------------------------- 1 | """test""" -------------------------------------------------------------------------------- /tests/script_runtime_errors/arith_bad_shift_3/in: -------------------------------------------------------------------------------- 1 | "snot" 2 | -------------------------------------------------------------------------------- /tests/script_runtime_errors/bad_fold_op_imut/in: -------------------------------------------------------------------------------- 1 | [1,2,3] 2 | -------------------------------------------------------------------------------- /tests/script_runtime_errors/bad_fold_op_record_imut/in: -------------------------------------------------------------------------------- 1 | {"k":"v"} -------------------------------------------------------------------------------- /tests/script_runtime_errors/bad_fold_type_imut/in: -------------------------------------------------------------------------------- 1 | [1,2] 2 | -------------------------------------------------------------------------------- /tests/script_runtime_errors/bad_index_type/in: -------------------------------------------------------------------------------- 1 | {"snot": 7} 2 | -------------------------------------------------------------------------------- /tests/script_runtime_errors/fold_bool_or_imut/in: -------------------------------------------------------------------------------- 1 | [false, 42] -------------------------------------------------------------------------------- /tests/script_runtime_errors/merge_target_no_object/in: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /tests/script_runtime_errors/non_arr_access/in: -------------------------------------------------------------------------------- 1 | {"snot": 7} 2 | -------------------------------------------------------------------------------- /tests/script_runtime_errors/non_arr_access2/in: -------------------------------------------------------------------------------- 1 | {"snot": 7} 2 | -------------------------------------------------------------------------------- /tests/script_runtime_errors/non_obj_access/in: -------------------------------------------------------------------------------- 1 | {"snot": 7} 2 | -------------------------------------------------------------------------------- /tests/script_runtime_errors/non_obj_access2/in: -------------------------------------------------------------------------------- 1 | {"snot": 7} 2 | -------------------------------------------------------------------------------- /tests/script_runtime_errors/obj_bad_key2/in: -------------------------------------------------------------------------------- 1 | {"snot": 7} 2 | -------------------------------------------------------------------------------- /tests/script_runtime_errors/patch_key_exists/in: -------------------------------------------------------------------------------- 1 | [1, 2, 3] 2 | -------------------------------------------------------------------------------- /tests/script_runtime_errors/patch_on_non_obj/in: -------------------------------------------------------------------------------- 1 | [1, 2, 3] 2 | -------------------------------------------------------------------------------- /tests/script_runtime_errors/subslice_bad_end/in: -------------------------------------------------------------------------------- 1 | [0, 1, 2] 2 | -------------------------------------------------------------------------------- /tests/script_runtime_errors/subslice_bad_start/in: -------------------------------------------------------------------------------- 1 | [0, 1, 2] 2 | -------------------------------------------------------------------------------- /tests/script_runtime_errors/subslice_neg_start/in: -------------------------------------------------------------------------------- 1 | [0, 1, 2] 2 | -------------------------------------------------------------------------------- /tests/scripts/binary_not/script.tremor: -------------------------------------------------------------------------------- 1 | let x = 12; 2 | !x 3 | -------------------------------------------------------------------------------- /tests/scripts/const_string_interpolation/out: -------------------------------------------------------------------------------- 1 | "one is 1" 2 | -------------------------------------------------------------------------------- /tests/scripts/datetime/in: -------------------------------------------------------------------------------- 1 | {"test" : "2019-01-01 09:42"} 2 | -------------------------------------------------------------------------------- /tests/scripts/datetime/out: -------------------------------------------------------------------------------- 1 | {"test": 1546335720000000000} 2 | -------------------------------------------------------------------------------- /tests/scripts/fold_bool/out: -------------------------------------------------------------------------------- 1 | true 2 | true 3 | false 4 | false -------------------------------------------------------------------------------- /tests/scripts/fold_bool_or/out: -------------------------------------------------------------------------------- 1 | false 2 | false 3 | true 4 | true -------------------------------------------------------------------------------- /tests/scripts/fold_record_imut/out: -------------------------------------------------------------------------------- 1 | {"0":2,"1":3,"2":4,"3":5} -------------------------------------------------------------------------------- /tests/scripts/heredoc_interpolation/out: -------------------------------------------------------------------------------- 1 | "snot 42 #{not}\n" 2 | -------------------------------------------------------------------------------- /tests/scripts/only_const/script.tremor: -------------------------------------------------------------------------------- 1 | const THIS = "that" 2 | -------------------------------------------------------------------------------- /tests/scripts/patch_default_key/in: -------------------------------------------------------------------------------- 1 | { "snot": "badger" } 2 | { } -------------------------------------------------------------------------------- /tests/scripts/pp_alias0/foo0.tremor: -------------------------------------------------------------------------------- 1 | const SNOT = "badger"; 2 | -------------------------------------------------------------------------------- /tests/scripts/range/out: -------------------------------------------------------------------------------- 1 | {"int":[-1,0,1,2],"uint":[1,2]} 2 | -------------------------------------------------------------------------------- /tests/scripts/string_interpolation_tailing/script.tremor: -------------------------------------------------------------------------------- 1 | "{1}" -------------------------------------------------------------------------------- /tests/scripts/tuple_pattern/out: -------------------------------------------------------------------------------- 1 | 0 2 | 1 3 | 2 4 | 3 5 | 4 6 | -------------------------------------------------------------------------------- /tremor-cli/tests/api/data/bench-mapping.yaml: -------------------------------------------------------------------------------- 1 | instance: "01" 2 | -------------------------------------------------------------------------------- /tremor-cli/tests/api/tags.yaml: -------------------------------------------------------------------------------- 1 | [ "api", "cli", "command" ] 2 | -------------------------------------------------------------------------------- /tremor-cli/tests/bench/tags.yaml: -------------------------------------------------------------------------------- 1 | [ 2 | "bench" 3 | ] 4 | -------------------------------------------------------------------------------- /tremor-cli/tests/fixtures/resolve_tags/a/b/c/tags.yaml: -------------------------------------------------------------------------------- 1 | - c 2 | -------------------------------------------------------------------------------- /tremor-cli/tests/fixtures/resolve_tags/a/b/tags.yaml: -------------------------------------------------------------------------------- 1 | - b 2 | -------------------------------------------------------------------------------- /tremor-cli/tests/integration/elastic-empty/expected_err.json: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tremor-cli/tests/integration/tcp/.gitignore: -------------------------------------------------------------------------------- 1 | /before/localhost.* -------------------------------------------------------------------------------- /tremor-script/tests/modules/there.tremor: -------------------------------------------------------------------------------- 1 | const HELLO = "world"; -------------------------------------------------------------------------------- /.actrc: -------------------------------------------------------------------------------- 1 | -P ubuntu-latest=nektos/act-environments-ubuntu:18.04 2 | -------------------------------------------------------------------------------- /bench/lines-throughput/main.trickle: -------------------------------------------------------------------------------- 1 | select event from in into out; -------------------------------------------------------------------------------- /bench/passthrough/main.trickle: -------------------------------------------------------------------------------- 1 | select event from in into out; 2 | -------------------------------------------------------------------------------- /bench/real-workflow-throughput-msgpack: -------------------------------------------------------------------------------- 1 | real-workflow-throughput-json -------------------------------------------------------------------------------- /tests/queries/_template/query.trickle: -------------------------------------------------------------------------------- 1 | select event from in into out; -------------------------------------------------------------------------------- /tests/queries/pp_win/in: -------------------------------------------------------------------------------- 1 | 1 2 | 2 3 | 3 4 | 4 5 | 5 6 | 6 7 | 7 8 | -------------------------------------------------------------------------------- /tests/queries/script_error/in: -------------------------------------------------------------------------------- 1 | {"snot": 1} 2 | 2 3 | {"snot": 3} 4 | -------------------------------------------------------------------------------- /tests/query_errors/pp_unrecognized_token/query.trickle: -------------------------------------------------------------------------------- 1 | use ; 2 | -------------------------------------------------------------------------------- /tests/script_errors/arith_bad_shift_1/script.tremor: -------------------------------------------------------------------------------- 1 | 42 >> 64 2 | -------------------------------------------------------------------------------- /tests/script_errors/arith_bad_shift_2/script.tremor: -------------------------------------------------------------------------------- 1 | 42 >> 2.0 2 | -------------------------------------------------------------------------------- /tests/script_errors/bin_invalid_type/script.tremor: -------------------------------------------------------------------------------- 1 | <> -------------------------------------------------------------------------------- /tests/script_errors/invalid_const_binary/script.tremor: -------------------------------------------------------------------------------- 1 | [1] / [2] 2 | -------------------------------------------------------------------------------- /tests/script_errors/invalid_const_unary/script.tremor: -------------------------------------------------------------------------------- 1 | - false 2 | -------------------------------------------------------------------------------- /tests/script_errors/invalid_utf8_2/script.tremor: -------------------------------------------------------------------------------- 1 | "invalid: \uD800" -------------------------------------------------------------------------------- /tests/script_errors/lexer_bad_float/script.tremor: -------------------------------------------------------------------------------- 1 | let f = 1.0e; 2 | -------------------------------------------------------------------------------- /tests/script_errors/lexer_invalid_float/script.tremor: -------------------------------------------------------------------------------- 1 | 12.0j5 2 | -------------------------------------------------------------------------------- /tests/script_errors/pp_unrecognized_token/script.tremor: -------------------------------------------------------------------------------- 1 | use ; 2 | -------------------------------------------------------------------------------- /tests/script_errors/script_without_newline/script.tremor: -------------------------------------------------------------------------------- 1 | "string" + 1 -------------------------------------------------------------------------------- /tests/script_errors/string_interpolation_empty/script.tremor: -------------------------------------------------------------------------------- 1 | "#{}" -------------------------------------------------------------------------------- /tests/script_errors/unfinished_escape_eof/script.tremor: -------------------------------------------------------------------------------- 1 | let test = "\ -------------------------------------------------------------------------------- /tests/script_runtime_errors/_template/script.tremor: -------------------------------------------------------------------------------- 1 | error + snot 2 | -------------------------------------------------------------------------------- /tests/script_runtime_errors/arr_bad_idx/script.tremor: -------------------------------------------------------------------------------- 1 | event[42] 2 | -------------------------------------------------------------------------------- /tests/script_runtime_errors/patch_copy_key_exists/in: -------------------------------------------------------------------------------- 1 | [1, 2, 3] 2 | -------------------------------------------------------------------------------- /tests/script_runtime_errors/patch_move_key_exists/in: -------------------------------------------------------------------------------- 1 | [1, 2, 3] 2 | -------------------------------------------------------------------------------- /tests/script_runtime_errors/subslice_end_lt_start/in: -------------------------------------------------------------------------------- 1 | [0, 1, 2] 2 | -------------------------------------------------------------------------------- /tests/script_runtime_errors/subslice_out_of_bounds/in: -------------------------------------------------------------------------------- 1 | [0, 1, 2] 2 | -------------------------------------------------------------------------------- /tests/script_warnings/lower_case_const/script.tremor: -------------------------------------------------------------------------------- 1 | const a = "a"; -------------------------------------------------------------------------------- /tests/scripts/array_comprehension/in: -------------------------------------------------------------------------------- 1 | [ "one", "two", "three" ] 2 | -------------------------------------------------------------------------------- /tests/scripts/array_pattern/in: -------------------------------------------------------------------------------- 1 | [ 1, 2, 3, 4, 5 , 2, 3, "4", 5 ] 2 | -------------------------------------------------------------------------------- /tests/scripts/expr_path/out: -------------------------------------------------------------------------------- 1 | [1,"snot","badger","badger","badger"] -------------------------------------------------------------------------------- /tests/scripts/fold_bool_imut/out: -------------------------------------------------------------------------------- 1 | true 2 | true 3 | false 4 | false -------------------------------------------------------------------------------- /tests/scripts/fold_bool_or_imut/out: -------------------------------------------------------------------------------- 1 | false 2 | false 3 | true 4 | true -------------------------------------------------------------------------------- /tests/scripts/patch_assign_target/out: -------------------------------------------------------------------------------- 1 | {"a":{},"b":{},"c":{}} 2 | -------------------------------------------------------------------------------- /tests/scripts/pp_alias1/foo1/bar.tremor: -------------------------------------------------------------------------------- 1 | const SNOT = "badger"; 2 | -------------------------------------------------------------------------------- /tests/scripts/pp_nest1/foo5/bar.tremor: -------------------------------------------------------------------------------- 1 | const SNOT = "badger"; 2 | -------------------------------------------------------------------------------- /tests/scripts/pp_nest4/foo8/bar.tremor: -------------------------------------------------------------------------------- 1 | const SNOT = "badger"; 2 | -------------------------------------------------------------------------------- /tests/scripts/recordpattern/out: -------------------------------------------------------------------------------- 1 | 1 2 | 2 3 | 3 4 | "default" 5 | 4 -------------------------------------------------------------------------------- /tests/scripts/state_null/in: -------------------------------------------------------------------------------- 1 | { "test" : "foo:bar snot:badger" } 2 | -------------------------------------------------------------------------------- /tests/scripts/string_concat/script.tremor: -------------------------------------------------------------------------------- 1 | "snot" + " badger" 2 | -------------------------------------------------------------------------------- /tests/scripts/unary/out: -------------------------------------------------------------------------------- 1 | {"1":true,"2":7,"3":42.0,"4":42,"5":-42} 2 | -------------------------------------------------------------------------------- /tremor-cli/tests/api/data/linked/mapping.yaml: -------------------------------------------------------------------------------- 1 | instance: '01' 2 | -------------------------------------------------------------------------------- /tremor-cli/tests/api/data/metronome-mapping.yaml: -------------------------------------------------------------------------------- 1 | instance: '01' 2 | -------------------------------------------------------------------------------- /tremor-cli/tests/cli/tags.yaml: -------------------------------------------------------------------------------- 1 | [ "cli", "non-api", "command" ] 2 | -------------------------------------------------------------------------------- /tremor-cli/tests/fixtures/resolve_tags/a/b/c/d/e/tags.yaml: -------------------------------------------------------------------------------- 1 | ["e"] 2 | -------------------------------------------------------------------------------- /tremor-cli/tests/fixtures/resolve_tags/a/b/c/d/tags.yaml: -------------------------------------------------------------------------------- 1 | ["d"] 2 | -------------------------------------------------------------------------------- /tremor-cli/tests/fixtures/resolve_tags/a/b/c/x/tags.yaml: -------------------------------------------------------------------------------- 1 | ["x"] 2 | -------------------------------------------------------------------------------- /tremor-cli/tests/fixtures/resolve_tags/a/b/c/y/g/tags.yaml: -------------------------------------------------------------------------------- 1 | ["g"] 2 | -------------------------------------------------------------------------------- /tremor-cli/tests/fixtures/resolve_tags/a/b/c/y/tags.yaml: -------------------------------------------------------------------------------- 1 | ["y"] 2 | -------------------------------------------------------------------------------- /tremor-cli/tests/integration/dns/expected_out.json: -------------------------------------------------------------------------------- 1 | "127.0.0.1" 2 | -------------------------------------------------------------------------------- /tremor-cli/tests/integration/dns/tags.yaml: -------------------------------------------------------------------------------- 1 | - "dns" 2 | - "connector" -------------------------------------------------------------------------------- /tremor-cli/tests/integration/tags.yaml: -------------------------------------------------------------------------------- 1 | [ 2 | "integration" 3 | ] -------------------------------------------------------------------------------- /tremor-cli/tests/integration/tcp-tls/.gitignore: -------------------------------------------------------------------------------- 1 | /before/localhost.* -------------------------------------------------------------------------------- /tremor-cli/tests/integration/ws-tls/.gitignore: -------------------------------------------------------------------------------- 1 | /before/localhost.* -------------------------------------------------------------------------------- /tremor-cli/tests/integration/ws/tags.yaml: -------------------------------------------------------------------------------- 1 | [ 2 | "ws" 3 | ] 4 | -------------------------------------------------------------------------------- /tremor-script/tests/modules/nest/there.tremor: -------------------------------------------------------------------------------- 1 | const HELLO = "world"; -------------------------------------------------------------------------------- /bench/real-workflow-throughput-json-1-1-1: -------------------------------------------------------------------------------- 1 | real-workflow-throughput-json -------------------------------------------------------------------------------- /bench/real-workflow-throughput-json-1-4-1: -------------------------------------------------------------------------------- 1 | real-workflow-throughput-json -------------------------------------------------------------------------------- /bench/real-workflow-throughput-json-16-16-1: -------------------------------------------------------------------------------- 1 | real-workflow-throughput-json -------------------------------------------------------------------------------- /bench/real-workflow-throughput-json-2-1-1: -------------------------------------------------------------------------------- 1 | real-workflow-throughput-json -------------------------------------------------------------------------------- /bench/real-workflow-throughput-json-2-2-1: -------------------------------------------------------------------------------- 1 | real-workflow-throughput-json -------------------------------------------------------------------------------- /bench/real-workflow-throughput-json-32-32-1: -------------------------------------------------------------------------------- 1 | real-workflow-throughput-json -------------------------------------------------------------------------------- /bench/real-workflow-throughput-json-4-1-1: -------------------------------------------------------------------------------- 1 | real-workflow-throughput-json -------------------------------------------------------------------------------- /bench/real-workflow-throughput-json-4-4-1: -------------------------------------------------------------------------------- 1 | real-workflow-throughput-json -------------------------------------------------------------------------------- /bench/real-workflow-throughput-json-64-64-1: -------------------------------------------------------------------------------- 1 | real-workflow-throughput-json -------------------------------------------------------------------------------- /bench/real-workflow-throughput-json-8-1-1: -------------------------------------------------------------------------------- 1 | real-workflow-throughput-json -------------------------------------------------------------------------------- /bench/real-workflow-throughput-json-8-8-1: -------------------------------------------------------------------------------- 1 | real-workflow-throughput-json -------------------------------------------------------------------------------- /bench/tcp-throughput/blackhole.trickle: -------------------------------------------------------------------------------- 1 | select event from in into out; 2 | -------------------------------------------------------------------------------- /bench/tcp-throughput/blaster.trickle: -------------------------------------------------------------------------------- 1 | select event from in into out; 2 | -------------------------------------------------------------------------------- /bench/ws-throughput/blackhole.trickle: -------------------------------------------------------------------------------- 1 | select event from in into out; 2 | -------------------------------------------------------------------------------- /bench/ws-throughput/blaster.trickle: -------------------------------------------------------------------------------- 1 | select event from in into out; 2 | -------------------------------------------------------------------------------- /docs/extractors/__category__.yaml: -------------------------------------------------------------------------------- 1 | label: 'Extractors' 2 | position: 600 -------------------------------------------------------------------------------- /tests/flows/consts_as_default_args/consts.troy: -------------------------------------------------------------------------------- 1 | const DEFAULT_INTERVAL = 1; -------------------------------------------------------------------------------- /tests/queries/group_set/out: -------------------------------------------------------------------------------- 1 | {"g": 0, "c": 3.0} 2 | {"g": 1, "c": 4.0} 3 | -------------------------------------------------------------------------------- /tests/queries/pp_alias_win/in: -------------------------------------------------------------------------------- 1 | 1 2 | 2 3 | 3 4 | 4 5 | 5 6 | 6 7 | 7 8 | -------------------------------------------------------------------------------- /tests/queries/pp_config_directive/out: -------------------------------------------------------------------------------- 1 | [1, 2] 2 | [3, 4] 3 | [5, 6] 4 | -------------------------------------------------------------------------------- /tests/query_errors/pp_unrecognized_token2/query.trickle: -------------------------------------------------------------------------------- 1 | use foo :: "; 2 | -------------------------------------------------------------------------------- /tests/query_runtime_errors/branch_error_then_ok/out: -------------------------------------------------------------------------------- 1 | {"format":"valid"} -------------------------------------------------------------------------------- /tests/script_errors/lexer_invalid_hex/script.tremor: -------------------------------------------------------------------------------- 1 | let invalid = 0x; 2 | -------------------------------------------------------------------------------- /tests/script_errors/lexer_string_interpolation/script.tremor: -------------------------------------------------------------------------------- 1 | "#{" 2 | -------------------------------------------------------------------------------- /tests/script_errors/lexer_unterminated_ident/script.tremor: -------------------------------------------------------------------------------- 1 | let `42 = 42; -------------------------------------------------------------------------------- /tests/script_errors/strnig_as_ident/script.tremor: -------------------------------------------------------------------------------- 1 | event."@timestamp" 2 | -------------------------------------------------------------------------------- /tests/script_errors/unexpected_escape/script.tremor: -------------------------------------------------------------------------------- 1 | let test = "\z"; 2 | -------------------------------------------------------------------------------- /tests/script_runtime_errors/merge_assign_target_new_no_object/in: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /tests/script_runtime_errors/missing_local/script.tremor: -------------------------------------------------------------------------------- 1 | missing_var 2 | -------------------------------------------------------------------------------- /tests/script_runtime_errors/obj_bad_key/script.tremor: -------------------------------------------------------------------------------- 1 | event.badger 2 | -------------------------------------------------------------------------------- /tests/script_runtime_errors/patch_merge_on_non_object/in: -------------------------------------------------------------------------------- 1 | [1, 2, 3] 2 | -------------------------------------------------------------------------------- /tests/script_runtime_errors/patch_update_key_missing/in: -------------------------------------------------------------------------------- 1 | [1, 2, 3] 2 | -------------------------------------------------------------------------------- /tests/script_runtime_errors/subslice_no_arr/script.tremor: -------------------------------------------------------------------------------- 1 | event[1:4] 2 | -------------------------------------------------------------------------------- /tests/scripts/const_expr_path_non_const_segment/out: -------------------------------------------------------------------------------- 1 | [[5],"badger"] 2 | -------------------------------------------------------------------------------- /tests/scripts/for_comprehension_filter/out: -------------------------------------------------------------------------------- 1 | [] 2 | ["snot"] 3 | [] 4 | -------------------------------------------------------------------------------- /tests/scripts/heredoc/out: -------------------------------------------------------------------------------- 1 | "this is \na heredoc\n wigth indentation!" 2 | -------------------------------------------------------------------------------- /tests/scripts/multiline/in: -------------------------------------------------------------------------------- 1 | {"a": "a multi line regular expression"} 2 | -------------------------------------------------------------------------------- /tests/scripts/pp_alias2/foo2/bar/baz.tremor: -------------------------------------------------------------------------------- 1 | const SNOT = "badger"; 2 | -------------------------------------------------------------------------------- /tests/scripts/pp_inline_nest1/foo/bar.tremor: -------------------------------------------------------------------------------- 1 | const SNOT = "badger"; 2 | -------------------------------------------------------------------------------- /tests/scripts/pp_nest2/foo6/bar/baz.tremor: -------------------------------------------------------------------------------- 1 | const SNOT = "badger"; 2 | -------------------------------------------------------------------------------- /tests/scripts/record_add/script.tremor: -------------------------------------------------------------------------------- 1 | event + {"snot": "badger"} 2 | -------------------------------------------------------------------------------- /tests/scripts/simple_match/in: -------------------------------------------------------------------------------- 1 | { "meta": "badger", "event": "snot" } 2 | -------------------------------------------------------------------------------- /tests/scripts/string_interpolation/in: -------------------------------------------------------------------------------- 1 | {"class": "snot", "answer": 42} 2 | -------------------------------------------------------------------------------- /tests/scripts/string_interpolation_nested/script.tremor: -------------------------------------------------------------------------------- 1 | "#{"#{"#{7}"}"}" -------------------------------------------------------------------------------- /tests/scripts/string_interpolation_simple/script.tremor: -------------------------------------------------------------------------------- 1 | ">#{event}<" 2 | -------------------------------------------------------------------------------- /tests/scripts/subslice_repeated/in: -------------------------------------------------------------------------------- 1 | [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] 2 | -------------------------------------------------------------------------------- /tremor-cli/tests/fixtures/resolve_tags/a/b/c/d/e/f/tags.yaml: -------------------------------------------------------------------------------- 1 | ["f"] 2 | -------------------------------------------------------------------------------- /tremor-cli/tests/integration/metronome/expected_out.json: -------------------------------------------------------------------------------- 1 | "triggered" 2 | -------------------------------------------------------------------------------- /tremor-cli/tests/integration/ws/.gitignore: -------------------------------------------------------------------------------- 1 | server.log 2 | server.pid 3 | -------------------------------------------------------------------------------- /tremor-script/lib/google/cloud.tremor: -------------------------------------------------------------------------------- 1 | use google::cloud::logging; 2 | -------------------------------------------------------------------------------- /tremor-script/tests/modules/loading/twice.tremor: -------------------------------------------------------------------------------- 1 | const SNOT = "badger"; -------------------------------------------------------------------------------- /tremor-script/tests/modules/nest/nest/there.tremor: -------------------------------------------------------------------------------- 1 | const HELLO = "world"; -------------------------------------------------------------------------------- /bench/link.yaml: -------------------------------------------------------------------------------- 1 | mapping: 2 | /binding/bench/01: 3 | instance: "01" 4 | -------------------------------------------------------------------------------- /tests/flows/consts_as_default_args/inner_consts.troy: -------------------------------------------------------------------------------- 1 | const INNER_INTERVAL = 3; -------------------------------------------------------------------------------- /tests/flows/consts_as_default_args/other_consts.troy: -------------------------------------------------------------------------------- 1 | const OTHER_INTERVAL = 2; -------------------------------------------------------------------------------- /tests/queries/args_in_function/query.trickle: -------------------------------------------------------------------------------- 1 | select event from in into out; -------------------------------------------------------------------------------- /tests/queries/pp_config_directive/in: -------------------------------------------------------------------------------- 1 | 1 2 | 2 3 | 3 4 | 4 5 | 5 6 | 6 7 | 7 8 | -------------------------------------------------------------------------------- /tests/queries/simple_passthrough/query.trickle: -------------------------------------------------------------------------------- 1 | select event from in into out; -------------------------------------------------------------------------------- /tests/query_errors/_template/query.trickle: -------------------------------------------------------------------------------- 1 | select event from in into out; 2 | -------------------------------------------------------------------------------- /tests/query_errors/pipeline_undefined/query.trickle: -------------------------------------------------------------------------------- 1 | create pipeline snot; 2 | -------------------------------------------------------------------------------- /tests/query_errors/pp_unrecognized_token3/query.trickle: -------------------------------------------------------------------------------- 1 | use foo :: as; 2 | -------------------------------------------------------------------------------- /tests/query_errors/pp_unrecognized_token4/query.trickle: -------------------------------------------------------------------------------- 1 | use foo :: :; bar; 2 | -------------------------------------------------------------------------------- /tests/query_runtime_errors/binary_operators_and_left/in: -------------------------------------------------------------------------------- 1 | {"a": "y", "b": true} -------------------------------------------------------------------------------- /tests/query_runtime_errors/binary_operators_and_right/in: -------------------------------------------------------------------------------- 1 | {"a": true, "b": "y"} -------------------------------------------------------------------------------- /tests/query_runtime_errors/binary_operators_or_left/in: -------------------------------------------------------------------------------- 1 | {"a": "y", "b": false} -------------------------------------------------------------------------------- /tests/query_runtime_errors/binary_operators_or_right/in: -------------------------------------------------------------------------------- 1 | {"a": false, "b": "y"} -------------------------------------------------------------------------------- /tests/query_runtime_errors/binary_operators_xor_left/in: -------------------------------------------------------------------------------- 1 | {"a": "y", "b": false} -------------------------------------------------------------------------------- /tests/query_runtime_errors/binary_operators_xor_right/in: -------------------------------------------------------------------------------- 1 | {"a": false, "b": "y"} -------------------------------------------------------------------------------- /tests/query_runtime_errors/branch_error_then_ok/in: -------------------------------------------------------------------------------- 1 | {} 2 | {"format":"valid"} -------------------------------------------------------------------------------- /tests/script_errors/lexer_bad_hex/script.tremor: -------------------------------------------------------------------------------- 1 | let f = 0xg; 2 | event 3 | -------------------------------------------------------------------------------- /tests/script_errors/lexer_bad_hex2/script.tremor: -------------------------------------------------------------------------------- 1 | let f = 7x0; 2 | event 3 | -------------------------------------------------------------------------------- /tests/script_errors/lexer_bad_hex3/script.tremor: -------------------------------------------------------------------------------- 1 | let f = 0x; 2 | event 3 | -------------------------------------------------------------------------------- /tests/script_errors/lexer_bad_int/script.tremor: -------------------------------------------------------------------------------- 1 | let f = 0snot; 2 | event 3 | -------------------------------------------------------------------------------- /tests/script_errors/lexer_heredoc_interpolation/script.tremor: -------------------------------------------------------------------------------- 1 | """ 2 | #{ 3 | -------------------------------------------------------------------------------- /tests/script_errors/lexer_invalid_int_invalid_char/script.tremor: -------------------------------------------------------------------------------- 1 | 12345j 2 | -------------------------------------------------------------------------------- /tests/script_errors/lexer_unterminated_string/script.tremor: -------------------------------------------------------------------------------- 1 | "this is a string; -------------------------------------------------------------------------------- /tests/script_errors/merge_ident/script.tremor: -------------------------------------------------------------------------------- 1 | let merge = event; 2 | 3 | merge -------------------------------------------------------------------------------- /tests/script_errors/missing_function/script.tremor: -------------------------------------------------------------------------------- 1 | snot::badger(event) 2 | -------------------------------------------------------------------------------- /tests/script_errors/pp_unrecognized_token2/script.tremor: -------------------------------------------------------------------------------- 1 | use foo :: "; 2 | -------------------------------------------------------------------------------- /tests/script_errors/pp_unrecognized_token3/script.tremor: -------------------------------------------------------------------------------- 1 | use foo :: as; 2 | -------------------------------------------------------------------------------- /tests/script_runtime_errors/assign_expr/script.tremor: -------------------------------------------------------------------------------- 1 | let ([1,2])[0] = 3; 2 | -------------------------------------------------------------------------------- /tests/script_runtime_errors/merge_assign_target_target_no_object/in: -------------------------------------------------------------------------------- 1 | 42 2 | -------------------------------------------------------------------------------- /tests/script_runtime_errors/non_arr_access/script.tremor: -------------------------------------------------------------------------------- 1 | event.snot[42] 2 | -------------------------------------------------------------------------------- /tests/script_runtime_errors/non_obj_access/script.tremor: -------------------------------------------------------------------------------- 1 | event.snot.badger 2 | -------------------------------------------------------------------------------- /tests/script_runtime_errors/subslice_and_idx_out_of_bounds/in: -------------------------------------------------------------------------------- 1 | [0, 1, 2] 2 | -------------------------------------------------------------------------------- /tests/scripts/assign_and_path_match/out: -------------------------------------------------------------------------------- 1 | {"strawberry":"cake","test":1} 2 | -------------------------------------------------------------------------------- /tests/scripts/bytes_create/out: -------------------------------------------------------------------------------- 1 | "snot \"snot!\"" 2 | "badger \"snot!\"" 3 | -------------------------------------------------------------------------------- /tests/scripts/cidr/in: -------------------------------------------------------------------------------- 1 | {"bare": "192.168.1.1", "pinned": "10.22.0.254"} 2 | -------------------------------------------------------------------------------- /tests/scripts/const_in_const_lookup/out: -------------------------------------------------------------------------------- 1 | "snot badger: 0!" 2 | "snot badger: 1!" -------------------------------------------------------------------------------- /tests/scripts/for_comprehension_filter/in: -------------------------------------------------------------------------------- 1 | [] 2 | ["3", "snot"] 3 | ["99"] 4 | -------------------------------------------------------------------------------- /tests/scripts/heredoc_interpolation/in: -------------------------------------------------------------------------------- 1 | {"class": "snot", "answer": 42} 2 | -------------------------------------------------------------------------------- /tests/scripts/patch_default_key/out: -------------------------------------------------------------------------------- 1 | {"snot":"badger"} 2 | {"snot":"otter"} 3 | -------------------------------------------------------------------------------- /tests/scripts/pp_alias3/foo3/bar/baz/mork.tremor: -------------------------------------------------------------------------------- 1 | const SNOT = "badger"; 2 | -------------------------------------------------------------------------------- /tests/scripts/pp_nest3/foo7/bar/baz/mork.tremor: -------------------------------------------------------------------------------- 1 | const SNOT = "badger"; 2 | -------------------------------------------------------------------------------- /tests/scripts/regex/in: -------------------------------------------------------------------------------- 1 | { "test": "http://example.com/", "footle": "bar" } 2 | -------------------------------------------------------------------------------- /tests/scripts/string_interpolation_escaped_hash/out: -------------------------------------------------------------------------------- 1 | ["#",">#","#<",">#<"] 2 | -------------------------------------------------------------------------------- /tests/scripts/string_quoted_curly/script.tremor: -------------------------------------------------------------------------------- 1 | " \#{event} = #{event}\n" 2 | -------------------------------------------------------------------------------- /tremor-cli/tests/integration/file-connector/tags.yaml: -------------------------------------------------------------------------------- 1 | ["connector", "file"] -------------------------------------------------------------------------------- /tremor-cli/tests/integration/no-rules/tags.yaml: -------------------------------------------------------------------------------- 1 | [ 2 | "no-rules" 3 | ] 4 | -------------------------------------------------------------------------------- /tremor-cli/tests/integration/stdlib/tags.yaml: -------------------------------------------------------------------------------- 1 | [ 2 | "stdlib" 3 | ] 4 | -------------------------------------------------------------------------------- /tremor-cli/tests/stdlib/std/tags.yaml: -------------------------------------------------------------------------------- 1 | [ 2 | "unit", 3 | "stdlib" 4 | ] 5 | -------------------------------------------------------------------------------- /static/language/epilog/addexprimut.md: -------------------------------------------------------------------------------- 1 | 2 | ```tremor 3 | x - y 4 | ``` 5 | 6 | -------------------------------------------------------------------------------- /static/language/epilog/andexprimut.md: -------------------------------------------------------------------------------- 1 | 2 | ```tremor 3 | x + y 4 | ``` 5 | 6 | -------------------------------------------------------------------------------- /static/language/epilog/cmpexprimut.md: -------------------------------------------------------------------------------- 1 | 2 | ```tremor 3 | x > y 4 | ``` 5 | 6 | -------------------------------------------------------------------------------- /static/language/epilog/mulexprimut.md: -------------------------------------------------------------------------------- 1 | 2 | ```tremor 3 | x * y 4 | ``` 5 | 6 | -------------------------------------------------------------------------------- /tests/flow_errors/flow_not_found/flow.troy: -------------------------------------------------------------------------------- 1 | deploy flow broken from snot::badger 2 | -------------------------------------------------------------------------------- /tests/queries/args_nesting_redefine/out: -------------------------------------------------------------------------------- 1 | {"add":42} 2 | {"add":42} 3 | {"add":42} -------------------------------------------------------------------------------- /tests/query_errors/bad_from/query.trickle: -------------------------------------------------------------------------------- 1 | select event from not_in into out; 2 | -------------------------------------------------------------------------------- /tests/query_errors/bad_into/query.trickle: -------------------------------------------------------------------------------- 1 | select event from in into not_out; 2 | -------------------------------------------------------------------------------- /tests/query_errors/pp_unrecognized_token5/foo/bar.tremor: -------------------------------------------------------------------------------- 1 | const SNOT = "badger"; 2 | -------------------------------------------------------------------------------- /tests/query_runtime_errors/_template/query.trickle: -------------------------------------------------------------------------------- 1 | select event from in into out; -------------------------------------------------------------------------------- /tests/script_errors/const_expr_id_into_arr/script.tremor: -------------------------------------------------------------------------------- 1 | [0,1,2,3,4,5,6].snot 2 | -------------------------------------------------------------------------------- /tests/script_errors/heredoc_tailing/script.tremor: -------------------------------------------------------------------------------- 1 | let tailing = """:P 2 | """; 3 | -------------------------------------------------------------------------------- /tests/script_errors/lexer_heredoc_interpolation2/script.tremor: -------------------------------------------------------------------------------- 1 | """ 2 | #{""" 3 | -------------------------------------------------------------------------------- /tests/script_errors/pp_unrecognized_token4/script.tremor: -------------------------------------------------------------------------------- 1 | use foo :: :; bar; 2 | -------------------------------------------------------------------------------- /tests/script_errors/select_ident/script.tremor: -------------------------------------------------------------------------------- 1 | let select = event; 2 | 3 | select -------------------------------------------------------------------------------- /tests/script_errors/string_interpolation_eof/script.tremor: -------------------------------------------------------------------------------- 1 | let si = "before #{ 2 | -------------------------------------------------------------------------------- /tests/script_errors/string_interpolation_extractor/script.tremor: -------------------------------------------------------------------------------- 1 | " #{ | } " 2 | -------------------------------------------------------------------------------- /tests/script_runtime_errors/merge_new_no_object/script.tremor: -------------------------------------------------------------------------------- 1 | merge {} of 7 end 2 | -------------------------------------------------------------------------------- /tests/script_runtime_errors/subslice_out_of_bounds/script.tremor: -------------------------------------------------------------------------------- 1 | event[1:4] 2 | -------------------------------------------------------------------------------- /tests/scripts/array_paths/script.tremor: -------------------------------------------------------------------------------- 1 | event["snot"][1][2][0:1][0]["ping"] 2 | -------------------------------------------------------------------------------- /tests/scripts/base64/in: -------------------------------------------------------------------------------- 1 | { "test": "8J+MiiBzbm90IGJhZGdlcg==", "footle":"bar" } 2 | -------------------------------------------------------------------------------- /tests/scripts/grok/in: -------------------------------------------------------------------------------- 1 | { "meta": "55.3.244.1 GET /index.html 15824 0.043" } 2 | -------------------------------------------------------------------------------- /tests/scripts/heredoc_regression/out: -------------------------------------------------------------------------------- 1 | "Hello, snot! Your name is:\n snot\n" 2 | -------------------------------------------------------------------------------- /tests/scripts/heredoc_usefn_interpolation/in: -------------------------------------------------------------------------------- 1 | {"class": "snot", "answer": 42} 2 | -------------------------------------------------------------------------------- /tests/scripts/heredoc_usefn_interpolation/out: -------------------------------------------------------------------------------- 1 | " snot 42 foo \n " 2 | -------------------------------------------------------------------------------- /tests/scripts/json/out: -------------------------------------------------------------------------------- 1 | { "foo": "8J+MiiBzbm90IGJhZGdlcg==", "footle": "bar" } 2 | -------------------------------------------------------------------------------- /tests/scripts/nested_patterns/out: -------------------------------------------------------------------------------- 1 | [[3,{"rec":"awesome"}],[4,{"rec":"here"}]] 2 | -------------------------------------------------------------------------------- /tests/scripts/record_comprehension/in: -------------------------------------------------------------------------------- 1 | { "0": "zip", "1": "one", "2": "two" } 2 | -------------------------------------------------------------------------------- /tests/scripts/role_map/out: -------------------------------------------------------------------------------- 1 | 808995606240165938 2 | 808995543497703444 3 | false 4 | -------------------------------------------------------------------------------- /tests/scripts/string_interpolation_prefix/script.tremor: -------------------------------------------------------------------------------- 1 | """ 2 | a "#{event}" 3 | """ -------------------------------------------------------------------------------- /tremor-cli/tests/api/data/bench-mapping.json: -------------------------------------------------------------------------------- 1 | { 2 | "instance": "01" 3 | } 4 | -------------------------------------------------------------------------------- /tremor-cli/tests/api/data/metronome-offramp.yaml: -------------------------------------------------------------------------------- 1 | id: stdout 2 | type: stdout 3 | -------------------------------------------------------------------------------- /tremor-cli/tests/integration/crononome/tags.yaml: -------------------------------------------------------------------------------- 1 | ["crononome", "connector"] 2 | -------------------------------------------------------------------------------- /tremor-cli/tests/integration/elastic/tags.yaml: -------------------------------------------------------------------------------- 1 | ["elastic", "connector", "docker"] -------------------------------------------------------------------------------- /tremor-cli/tests/integration/kv/tags.yaml: -------------------------------------------------------------------------------- 1 | [ 2 | "kv", 3 | "connector" 4 | ] -------------------------------------------------------------------------------- /tremor-cli/tests/integration/metronome/tags.yaml: -------------------------------------------------------------------------------- 1 | ["metronome", "connector"] 2 | -------------------------------------------------------------------------------- /tremor-cli/tests/integration/select-window-gd/tags.yaml: -------------------------------------------------------------------------------- 1 | ["gd", "select", "window"] -------------------------------------------------------------------------------- /tremor-cli/tests/integration/window-max-groups/tags.yaml: -------------------------------------------------------------------------------- 1 | ["window", "max-groups"] -------------------------------------------------------------------------------- /tremor-cli/tests/stdlib/tremor/tags.yaml: -------------------------------------------------------------------------------- 1 | [ 2 | "unit", 3 | "tremor" 4 | ] 5 | -------------------------------------------------------------------------------- /.markdownlint.yaml: -------------------------------------------------------------------------------- 1 | MD033: false 2 | MD013: false 3 | ignore: 4 | - "doc/api.md" 5 | -------------------------------------------------------------------------------- /static/language/epilog/patchoperations.md: -------------------------------------------------------------------------------- 1 | 2 | A sequence of patch operations 3 | 4 | -------------------------------------------------------------------------------- /tests/queries/array_addition/query.trickle: -------------------------------------------------------------------------------- 1 | select event.a + event.b from in into out; -------------------------------------------------------------------------------- /tests/queries/binary_op_short_circuit/in: -------------------------------------------------------------------------------- 1 | {"field_true": true, "field_false": false} 2 | -------------------------------------------------------------------------------- /tests/queries/pipeline_complex_args/out: -------------------------------------------------------------------------------- 1 | {"p1":42,"p2":[1,2,3,4],"p3":"snotbadger"} 2 | -------------------------------------------------------------------------------- /tests/query_errors/pp_embed_unrecognized_token5/foo/bar.tremor: -------------------------------------------------------------------------------- 1 | const BEEP = "boop"; 2 | -------------------------------------------------------------------------------- /tests/script_errors/const_expr_index_into_int/script.tremor: -------------------------------------------------------------------------------- 1 | {"snot": 42}.snot[5] 2 | -------------------------------------------------------------------------------- /tests/script_errors/const_expr_unknown_key/script.tremor: -------------------------------------------------------------------------------- 1 | {"snot": "badger"}.bad_key 2 | -------------------------------------------------------------------------------- /tests/script_errors/double_const/script.tremor: -------------------------------------------------------------------------------- 1 | const ONE = 1; 2 | const ONE = "two"; 3 | -------------------------------------------------------------------------------- /tests/script_errors/error_in_include/script.tremor: -------------------------------------------------------------------------------- 1 | use snot; 2 | 3 | event + snot 4 | -------------------------------------------------------------------------------- /tests/script_errors/lexer_invalid_pp/script.tremor: -------------------------------------------------------------------------------- 1 | #!this makes no sense! 2 | event 3 | -------------------------------------------------------------------------------- /tests/script_errors/lexer_unterminated_heredoc2/script.tremor: -------------------------------------------------------------------------------- 1 | """ 2 | this is a heredoc -------------------------------------------------------------------------------- /tests/script_errors/pp_cyclic/script.tremor: -------------------------------------------------------------------------------- 1 | use `script` as s; 2 | 3 | const SNOT = 3; -------------------------------------------------------------------------------- /tests/script_errors/pp_unrecognized_token5/foo/bar.tremor: -------------------------------------------------------------------------------- 1 | const SNOT = "badger"; 2 | -------------------------------------------------------------------------------- /tests/script_runtime_errors/arr_bad_idx2/script.tremor: -------------------------------------------------------------------------------- 1 | let idx = 42; 2 | event[idx] 3 | -------------------------------------------------------------------------------- /tests/script_runtime_errors/assign_reserved/script.tremor: -------------------------------------------------------------------------------- 1 | let group.snot = event; 2 | -------------------------------------------------------------------------------- /tests/script_runtime_errors/bad_binary/script.tremor: -------------------------------------------------------------------------------- 1 | let a = 7; 2 | 3 | a + "snot" 4 | -------------------------------------------------------------------------------- /tests/script_runtime_errors/bad_bitshift/script.tremor: -------------------------------------------------------------------------------- 1 | let a = 42; 2 | 3 | a >> 64 4 | -------------------------------------------------------------------------------- /tests/script_runtime_errors/bad_unary/script.tremor: -------------------------------------------------------------------------------- 1 | let snot = "snot"; 2 | not snot 3 | -------------------------------------------------------------------------------- /tests/scripts/consts/script.tremor: -------------------------------------------------------------------------------- 1 | const OUT = {"this was": ["a", "const"]}; 2 | OUT 3 | -------------------------------------------------------------------------------- /tests/scripts/fn_extractors/in: -------------------------------------------------------------------------------- 1 | "badger" 2 | "horse" 3 | 42 4 | "{\"badger\": 42}" 5 | -------------------------------------------------------------------------------- /tests/scripts/fold_array/script.tremor: -------------------------------------------------------------------------------- 1 | for event of 2 | case (k, v) => v + 1 3 | end; -------------------------------------------------------------------------------- /tests/scripts/pp_fn_fib/script.tremor: -------------------------------------------------------------------------------- 1 | use fib as lies; 2 | 3 | lies::fib(event); 4 | -------------------------------------------------------------------------------- /tests/scripts/record_comprehension_imut/in: -------------------------------------------------------------------------------- 1 | { "0": "zip", "1": "one", "2": "two" } 2 | -------------------------------------------------------------------------------- /tremor-cli/src/_template/main.troy: -------------------------------------------------------------------------------- 1 | use lib::flows; 2 | deploy flow main from flows::main; -------------------------------------------------------------------------------- /tremor-cli/tests/cli/data/query_with_error.trickle: -------------------------------------------------------------------------------- 1 | select event.foo from in into out; -------------------------------------------------------------------------------- /tremor-cli/tests/integration/cb-with-auto-ack-sink/tags.yaml: -------------------------------------------------------------------------------- 1 | ["cb", "gd", "auto-ack"] -------------------------------------------------------------------------------- /tremor-cli/tests/integration/quiescence-simple/tags.yaml: -------------------------------------------------------------------------------- 1 | ["connectors", "quiescence"] -------------------------------------------------------------------------------- /tremor-cli/tests/integration/tcp/tags.yaml: -------------------------------------------------------------------------------- 1 | ["tcp", "echo", "connectors", "connector"] -------------------------------------------------------------------------------- /tremor-cli/tests/integration/udp-postprocessors/.gitignore: -------------------------------------------------------------------------------- 1 | server.log 2 | server.pid 3 | -------------------------------------------------------------------------------- /tremor-cli/tests/integration/window-timeout/tags.yaml: -------------------------------------------------------------------------------- 1 | ["window", "signal", "timeout"] -------------------------------------------------------------------------------- /bench/group_by/main.trickle: -------------------------------------------------------------------------------- 1 | 2 | select event from in group by event.application into out; -------------------------------------------------------------------------------- /bench/group_by_each/main.trickle: -------------------------------------------------------------------------------- 1 | 2 | select event from in group by each(event.tags) into out; -------------------------------------------------------------------------------- /static/language/epilog/argsclause.md: -------------------------------------------------------------------------------- 1 | 2 | ```tremor 3 | args 4 | x = y 5 | ``` 6 | 7 | -------------------------------------------------------------------------------- /static/language/epilog/creationwithend.md: -------------------------------------------------------------------------------- 1 | 2 | ```tremor 3 | with x = y end 4 | ``` 5 | 6 | -------------------------------------------------------------------------------- /static/language/epilog/windowkind.md: -------------------------------------------------------------------------------- 1 | 2 | Currently only `tumbling` is implemented. 3 | 4 | -------------------------------------------------------------------------------- /static/language/epilog/withclause.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | ```tremor 4 | with x = y 5 | ``` 6 | 7 | 8 | -------------------------------------------------------------------------------- /static/language/epilog/withendclause.md: -------------------------------------------------------------------------------- 1 | 2 | ```tremor 3 | with x = y end 4 | ``` 5 | 6 | -------------------------------------------------------------------------------- /static/language/prolog/for.md: -------------------------------------------------------------------------------- 1 | The `For` rule defines an mutable `for` comprehension. 2 | 3 | -------------------------------------------------------------------------------- /static/language/prolog/maybeport.md: -------------------------------------------------------------------------------- 1 | The `MaybePort` rule defines an optional `Port`. 2 | 3 | -------------------------------------------------------------------------------- /static/language/prolog/withexpr.md: -------------------------------------------------------------------------------- 1 | The `WithExpr` rule defines a name value binding. 2 | 3 | -------------------------------------------------------------------------------- /tests/queries/cardinality/out: -------------------------------------------------------------------------------- 1 | {"g": 0, "c": 3.0, "n": 2} 2 | {"g": 1, "c": 4.0, "n": 1} 3 | -------------------------------------------------------------------------------- /tests/queries/guard_having/query.trickle: -------------------------------------------------------------------------------- 1 | select event from in into out having event % 2 != 0; -------------------------------------------------------------------------------- /tests/queries/guard_where/query.trickle: -------------------------------------------------------------------------------- 1 | select event from in where event % 2 == 0 into out; -------------------------------------------------------------------------------- /tests/queries/pp_operator/foo5/bar.trickle: -------------------------------------------------------------------------------- 1 | define operator counter from generic::counter; 2 | -------------------------------------------------------------------------------- /tests/query_errors/let_in_select/query.trickle: -------------------------------------------------------------------------------- 1 | select 2 | let c = 7 3 | from in into out; 4 | -------------------------------------------------------------------------------- /tests/query_errors/local_in_select/query.trickle: -------------------------------------------------------------------------------- 1 | select 2 | a + b 3 | from in into out; 4 | -------------------------------------------------------------------------------- /tests/query_runtime_errors/script_bad_port/out: -------------------------------------------------------------------------------- 1 | {"error":"unknown port: `bad_port`","event":1} -------------------------------------------------------------------------------- /tests/script_errors/const_expr_range_on_non_array/script.tremor: -------------------------------------------------------------------------------- 1 | {"snot":"badger"}[5:9] 2 | -------------------------------------------------------------------------------- /tests/script_errors/lexer_unterminated_ident2/script.tremor: -------------------------------------------------------------------------------- 1 | let event.`42 = 42; 2 | event 3 | -------------------------------------------------------------------------------- /tests/script_errors/pp_unknown_function_in_function/script.tremor: -------------------------------------------------------------------------------- 1 | use foo; 2 | 3 | foo::f() -------------------------------------------------------------------------------- /tests/script_errors/string_interpolation_escape/script.tremor: -------------------------------------------------------------------------------- 1 | let escape = " #{ "\z" } "; 2 | -------------------------------------------------------------------------------- /tests/script_errors/string_interpolation_invalid_utf8/script.tremor: -------------------------------------------------------------------------------- 1 | " #{ " \u666G " } " 2 | -------------------------------------------------------------------------------- /tests/script_runtime_errors/arith_bad_shift_3/script.tremor: -------------------------------------------------------------------------------- 1 | let a = 64; 2 | 3 | 42 >> a 4 | -------------------------------------------------------------------------------- /tests/script_runtime_errors/bad_index_type/script.tremor: -------------------------------------------------------------------------------- 1 | let a = [1, 2]; 2 | event[a] 3 | -------------------------------------------------------------------------------- /tests/script_runtime_errors/non_arr_access2/script.tremor: -------------------------------------------------------------------------------- 1 | let k = 42; 2 | event.snot[k] 3 | -------------------------------------------------------------------------------- /tests/script_runtime_errors/obj_bad_key2/script.tremor: -------------------------------------------------------------------------------- 1 | let key = "badger"; 2 | event[key] 3 | -------------------------------------------------------------------------------- /tests/script_runtime_errors/subslice_and_idx_out_of_bounds/script.tremor: -------------------------------------------------------------------------------- 1 | event[1:3][2] 2 | -------------------------------------------------------------------------------- /tests/script_runtime_errors/subslice_bad_end/script.tremor: -------------------------------------------------------------------------------- 1 | let k = "a"; 2 | event[1:k] 3 | -------------------------------------------------------------------------------- /tests/script_runtime_errors/subslice_bad_start/script.tremor: -------------------------------------------------------------------------------- 1 | let k = "a"; 2 | event[k:4] 3 | -------------------------------------------------------------------------------- /tests/script_runtime_errors/subslice_end_lt_start/script.tremor: -------------------------------------------------------------------------------- 1 | let k = 1; 2 | event[2:k] 3 | -------------------------------------------------------------------------------- /tests/script_runtime_errors/subslice_neg_start/script.tremor: -------------------------------------------------------------------------------- 1 | let k = -1; 2 | event[k:4] 3 | -------------------------------------------------------------------------------- /tests/script_warnings/nanotime/script.tremor: -------------------------------------------------------------------------------- 1 | use tremor::system; 2 | 3 | system::nanotime() -------------------------------------------------------------------------------- /tests/scripts/cidr_multi/in: -------------------------------------------------------------------------------- 1 | {"multi_cidr": "10.22.0.254", "doesnt_match": "10.22.0.254"} 2 | -------------------------------------------------------------------------------- /tests/scripts/drop/in: -------------------------------------------------------------------------------- 1 | 0 2 | 1 3 | 2 4 | 3 5 | 4 6 | 5 7 | 6 8 | 7 9 | 8 10 | 9 11 | -------------------------------------------------------------------------------- /tests/scripts/fold_bool/in: -------------------------------------------------------------------------------- 1 | [true, true, true] 2 | [] 3 | [false] 4 | [true, false, "invalid"] -------------------------------------------------------------------------------- /tests/scripts/fold_number/script.tremor: -------------------------------------------------------------------------------- 1 | for event of 2 | case (k, v) => v 3 | into 0 end; -------------------------------------------------------------------------------- /tests/scripts/merge_assign_target_state/out: -------------------------------------------------------------------------------- 1 | {"foo":"bar"} 2 | {"foo":"grmpf","snot":"badger"} -------------------------------------------------------------------------------- /tests/scripts/patch/in: -------------------------------------------------------------------------------- 1 | { "aa": 1, "bb": 2, "ee": "florp", "flork": { "snot": "badger"} } 2 | -------------------------------------------------------------------------------- /tests/scripts/string_interpolation_import/script.tremor: -------------------------------------------------------------------------------- 1 | use std::random; 2 | "#{event} snot" -------------------------------------------------------------------------------- /tremor-cli/tests/integration/cb-drop-dead-ends/tags.yaml: -------------------------------------------------------------------------------- 1 | ["gd", "cb", "drop", "dead-ends"] -------------------------------------------------------------------------------- /tremor-cli/tests/integration/empty-line/tags.yaml: -------------------------------------------------------------------------------- 1 | [ 2 | "empty", 3 | "line" 4 | ] 5 | -------------------------------------------------------------------------------- /tremor-cli/tests/integration/file-connector-append/tags.yaml: -------------------------------------------------------------------------------- 1 | ["connector", "file", "append"] -------------------------------------------------------------------------------- /tremor-cli/tests/integration/query-exit/expected.json: -------------------------------------------------------------------------------- 1 | {"done":false} 2 | {"done":true} 3 | -------------------------------------------------------------------------------- /tremor-cli/tests/integration/stdio/stdin: -------------------------------------------------------------------------------- 1 | event for stdout 2 | event for stderr 3 | exit 4 | -------------------------------------------------------------------------------- /tremor-common/README.md: -------------------------------------------------------------------------------- 1 | # tremor-common 2 | 3 | Shared and useful functions for tremor 4 | -------------------------------------------------------------------------------- /.github/scripts/lcov-wrap.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/bash 2 | cargo llvm-cov run --no-report -p tremor-cli -- $@ -------------------------------------------------------------------------------- /CODEOWNERS: -------------------------------------------------------------------------------- 1 | # Tremor code owners core team 2 | * @anupdhml @darach @Licenser @mfelsche @skoech -------------------------------------------------------------------------------- /bench/match.json.xz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tremor-rs/tremor-runtime/HEAD/bench/match.json.xz -------------------------------------------------------------------------------- /rust-toolchain: -------------------------------------------------------------------------------- 1 | [toolchain] 2 | channel = "1.82.0" 3 | components = [ "rustfmt", "clippy" ] 4 | -------------------------------------------------------------------------------- /static/language/epilog/embeddedscript.md: -------------------------------------------------------------------------------- 1 | 2 | ```tremor 3 | script 4 | event 5 | end 6 | ``` 7 | -------------------------------------------------------------------------------- /static/language/epilog/groupdefs_.md: -------------------------------------------------------------------------------- 1 | 2 | A comma delimited set of `GroupDef` productions 3 | 4 | -------------------------------------------------------------------------------- /static/language/epilog/unarysimpleexprimut.md: -------------------------------------------------------------------------------- 1 | 2 | ```tremor 3 | not (a and b) 4 | ``` 5 | 6 | -------------------------------------------------------------------------------- /static/language/prolog/effectors.md: -------------------------------------------------------------------------------- 1 | The `Effectors` rule defines an effect block. 2 | 3 | 4 | -------------------------------------------------------------------------------- /static/language/prolog/nil.md: -------------------------------------------------------------------------------- 1 | The `Nil` rule defines the syntax of the nil literal in tremor. 2 | -------------------------------------------------------------------------------- /static/language/prolog/patch.md: -------------------------------------------------------------------------------- 1 | The `Patch` rule defines the `patch` statement in tremor. 2 | 3 | -------------------------------------------------------------------------------- /tests/data/input.xz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tremor-rs/tremor-runtime/HEAD/tests/data/input.xz -------------------------------------------------------------------------------- /tests/queries/array_addition/out: -------------------------------------------------------------------------------- 1 | [1,2,3,4,5,6] 2 | [[1,2], [3,4], [5,6]] 3 | [[1,2], [3,4], 5, 6] -------------------------------------------------------------------------------- /tests/queries/pp_fn/query.trickle: -------------------------------------------------------------------------------- 1 | use example2::c; 2 | 3 | select c::map(event) from in into out; -------------------------------------------------------------------------------- /tests/queries/pp_script/in: -------------------------------------------------------------------------------- 1 | { "a": 1, "b": 2 } 2 | { "a": 2, "b": 2 } 3 | { "a": 3, "b": 2 } 4 | -------------------------------------------------------------------------------- /tests/queries/script_ports/in: -------------------------------------------------------------------------------- 1 | 1 2 | 2 3 | 3 4 | 4 5 | 5 6 | 6 7 | 7 8 | 8 9 | 9 10 | 10 -------------------------------------------------------------------------------- /tests/queries/unused_node/query.trickle: -------------------------------------------------------------------------------- 1 | create stream stage1; 2 | select event from in into out; -------------------------------------------------------------------------------- /tests/queries/window_by_two_scripted/out: -------------------------------------------------------------------------------- 1 | [1,2] 2 | [3,4] 3 | [5,6] 4 | [7,8] 5 | [9, "emit"] 6 | -------------------------------------------------------------------------------- /tests/query_errors/const_in_select/query.trickle: -------------------------------------------------------------------------------- 1 | select 2 | const c = 7 3 | from in into out; 4 | -------------------------------------------------------------------------------- /tests/script_errors/const_expr_reverse_range/script.tremor: -------------------------------------------------------------------------------- 1 | {"snot": [0,1,2,3,4,5,6]}.snot[5:2] 2 | -------------------------------------------------------------------------------- /tests/script_errors/error_in_include/snot.tremor: -------------------------------------------------------------------------------- 1 | fn badger() with 2 | snot::badger::boo 3 | end -------------------------------------------------------------------------------- /tests/script_errors/function_error_1/script.tremor: -------------------------------------------------------------------------------- 1 | use std::record; 2 | record::from_array(7) 3 | -------------------------------------------------------------------------------- /tests/script_errors/function_error_2/script.tremor: -------------------------------------------------------------------------------- 1 | use std::math; 2 | math::max("snot", 7) 3 | -------------------------------------------------------------------------------- /tests/script_errors/lexer_string_interpolation2/script.tremor: -------------------------------------------------------------------------------- 1 | let x = "before #{ { {}"; 2 | 3 | -------------------------------------------------------------------------------- /tests/script_errors/lexer_triple_colon/script.tremor: -------------------------------------------------------------------------------- 1 | # we can't have triple colons 2 | a:::b() 3 | -------------------------------------------------------------------------------- /tests/script_errors/mul_overflow/script.tremor: -------------------------------------------------------------------------------- 1 | use std::integer::unsigned; 2 | unsigned::MAX * 2; -------------------------------------------------------------------------------- /tests/script_errors/pp_nest_cyclic/foo/bar.tremor: -------------------------------------------------------------------------------- 1 | use foo::baz; 2 | 3 | const BAR = "bar"; 4 | -------------------------------------------------------------------------------- /tests/script_errors/pp_nest_cyclic/foo/baz.tremor: -------------------------------------------------------------------------------- 1 | use foo::bar; 2 | 3 | const BAZ = "baz"; 4 | -------------------------------------------------------------------------------- /tests/script_errors/pp_unknown_function_in_function/foo.tremor: -------------------------------------------------------------------------------- 1 | fn f() with 2 | g(1,2) 3 | end; -------------------------------------------------------------------------------- /tests/script_errors/sub_overflow/script.tremor: -------------------------------------------------------------------------------- 1 | use std::integer::unsigned; 2 | 0 - unsigned::MAX; -------------------------------------------------------------------------------- /tests/script_runtime_errors/bad_merge/script.tremor: -------------------------------------------------------------------------------- 1 | patch event of 2 | merge => "snot" 3 | end 4 | -------------------------------------------------------------------------------- /tests/scripts/_template/in: -------------------------------------------------------------------------------- 1 | 0 2 | 1 3 | 2 4 | 3 5 | 4 6 | 5 7 | 6 8 | 7 9 | 8 10 | 9 11 | -------------------------------------------------------------------------------- /tests/scripts/_template/out: -------------------------------------------------------------------------------- 1 | 0 2 | 1 3 | 2 4 | 3 5 | 4 6 | 5 7 | 6 8 | 7 9 | 8 10 | 9 11 | -------------------------------------------------------------------------------- /tests/scripts/const_fn/script.tremor: -------------------------------------------------------------------------------- 1 | use std::math; 2 | const TWO = math::max(1, 2); 3 | TWO 4 | -------------------------------------------------------------------------------- /tests/scripts/empty_subslice/script.tremor: -------------------------------------------------------------------------------- 1 | use std::array; 2 | array::is_empty(event[1:1]) 3 | -------------------------------------------------------------------------------- /tests/scripts/fn_fib/in: -------------------------------------------------------------------------------- 1 | 0 2 | 1 3 | 2 4 | 3 5 | 4 6 | 5 7 | 6 8 | 7 9 | 8 10 | 9 11 | -------------------------------------------------------------------------------- /tests/scripts/fn_fib/out: -------------------------------------------------------------------------------- 1 | 0 2 | 1 3 | 1 4 | 2 5 | 3 6 | 5 7 | 8 8 | 13 9 | 21 10 | 34 11 | -------------------------------------------------------------------------------- /tests/scripts/fold_array_imut/script.tremor: -------------------------------------------------------------------------------- 1 | (for event of 2 | case (k, v) => v + 1 3 | end) 4 | -------------------------------------------------------------------------------- /tests/scripts/fold_bool_imut/in: -------------------------------------------------------------------------------- 1 | [true, true, true] 2 | [] 3 | [false] 4 | [true, false, "invalid"] -------------------------------------------------------------------------------- /tests/scripts/fold_bool_or/in: -------------------------------------------------------------------------------- 1 | [false, false, false] 2 | [] 3 | [true] 4 | [true, false, "invalid"] -------------------------------------------------------------------------------- /tests/scripts/heredoc/script.tremor: -------------------------------------------------------------------------------- 1 | """ 2 | this is 3 | a heredoc 4 | wigth indentation!""" 5 | -------------------------------------------------------------------------------- /tests/scripts/merge_assign_target_state/in: -------------------------------------------------------------------------------- 1 | {"foo": "bar"} 2 | {"snot": "badger", "foo": "grmpf"} -------------------------------------------------------------------------------- /tests/scripts/module/in: -------------------------------------------------------------------------------- 1 | 0 2 | 1 3 | 2 4 | 3 5 | 4 6 | 5 7 | 6 8 | 7 9 | 8 10 | 9 11 | -------------------------------------------------------------------------------- /tests/scripts/multi_use/in: -------------------------------------------------------------------------------- 1 | 0 2 | 1 3 | 2 4 | 3 5 | 4 6 | 5 7 | 6 8 | 7 9 | 8 10 | 9 11 | -------------------------------------------------------------------------------- /tests/scripts/multi_use/out: -------------------------------------------------------------------------------- 1 | 0 2 | 1 3 | 2 4 | 3 5 | 4 6 | 5 7 | 6 8 | 7 9 | 8 10 | 9 11 | -------------------------------------------------------------------------------- /tests/scripts/pass_args/in: -------------------------------------------------------------------------------- 1 | 0 2 | 1 3 | 2 4 | 3 5 | 4 6 | 5 7 | 6 8 | 7 9 | 8 10 | 9 11 | -------------------------------------------------------------------------------- /tests/scripts/pp_fn_fib/in: -------------------------------------------------------------------------------- 1 | 0 2 | 1 3 | 2 4 | 3 5 | 4 6 | 5 7 | 6 8 | 7 9 | 8 10 | 9 11 | -------------------------------------------------------------------------------- /tests/scripts/string_interpolation_regexp/in: -------------------------------------------------------------------------------- 1 | "0" 2 | "12" 3 | "234" 4 | "5678" 5 | "99999" 6 | -------------------------------------------------------------------------------- /tests/scripts/string_interpolation_regexp/out: -------------------------------------------------------------------------------- 1 | "0" 2 | "12" 3 | "234" 4 | "####" 5 | "####9" 6 | -------------------------------------------------------------------------------- /tremor-cli/tests/bench/arithmetics/tags.yaml: -------------------------------------------------------------------------------- 1 | [ 2 | "pipeline", 3 | "codec:binary" 4 | ] -------------------------------------------------------------------------------- /tremor-cli/tests/bench/passthrough/tags.yaml: -------------------------------------------------------------------------------- 1 | [ 2 | "pipeline", 3 | "codec:binary" 4 | ] -------------------------------------------------------------------------------- /tremor-cli/tests/integration/bad-rule-syntax/tags.yaml: -------------------------------------------------------------------------------- 1 | [ 2 | "bad", 3 | "syntax" 4 | ] 5 | -------------------------------------------------------------------------------- /tremor-cli/tests/integration/cb-pipeline-to-pipeline/tags.yaml: -------------------------------------------------------------------------------- 1 | ["gd", "cb", "multiple-pipelines"] -------------------------------------------------------------------------------- /tremor-cli/tests/integration/clickhouse/tags.yaml: -------------------------------------------------------------------------------- 1 | - "clickhouse" 2 | - "connector" 3 | - "docker" -------------------------------------------------------------------------------- /tremor-cli/tests/integration/elastic-empty/tags.yaml: -------------------------------------------------------------------------------- 1 | ["elastic", "connector", "docker", "empty"] -------------------------------------------------------------------------------- /tremor-cli/tests/integration/elastic-sink-only/tags.yaml: -------------------------------------------------------------------------------- 1 | ["elastic", "sink", "source", "docker"] -------------------------------------------------------------------------------- /tremor-cli/tests/integration/file-connector-overwrite/tags.yaml: -------------------------------------------------------------------------------- 1 | ["connector", "file", "overwrite"] -------------------------------------------------------------------------------- /tremor-cli/tests/integration/kv/reset.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | rm -r data 3 | mkdir data 4 | -------------------------------------------------------------------------------- /tremor-cli/tests/integration/otel-client/tags.yaml: -------------------------------------------------------------------------------- 1 | ["otel", "docker", "connector", "otel_client"] -------------------------------------------------------------------------------- /tremor-cli/tests/integration/query-exit/in.json: -------------------------------------------------------------------------------- 1 | {"done": false } 2 | {"done": true } 3 | "exit" -------------------------------------------------------------------------------- /tremor-cli/tests/integration/query-exit/tags.yaml: -------------------------------------------------------------------------------- 1 | [ 2 | "query", 3 | "limit" 4 | ] 5 | -------------------------------------------------------------------------------- /tremor-cli/tests/integration/rewrite-meta/tags.yaml: -------------------------------------------------------------------------------- 1 | [ 2 | "rewrite", 3 | "meta" 4 | ] 5 | -------------------------------------------------------------------------------- /tremor-cli/tests/integration/string-codec/tags.yaml: -------------------------------------------------------------------------------- 1 | [ 2 | "string", 3 | "codec" 4 | ] 5 | -------------------------------------------------------------------------------- /tremor-cli/tests/integration/tcp-reuseport/tags.yaml: -------------------------------------------------------------------------------- 1 | - "tcp" 2 | - "reuseport" 3 | - "connector" -------------------------------------------------------------------------------- /tremor-cli/tests/integration/tcp-tls/tags.yaml: -------------------------------------------------------------------------------- 1 | ["tcp", "tls", "echo", "connectors", "connector"] -------------------------------------------------------------------------------- /tremor-cli/tests/integration/udp-reuseport/tags.yaml: -------------------------------------------------------------------------------- 1 | - "udp" 2 | - "reuseport" 3 | - "connector" -------------------------------------------------------------------------------- /tremor-cli/tests/integration/ws-tls/tags.yaml: -------------------------------------------------------------------------------- 1 | ["ws", "tls", "echo", "connectors", "connector"] 2 | -------------------------------------------------------------------------------- /.github/checks/llvm-cov-wrapper: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | cargo llvm-cov run -p tremor-cli --no-report -- $@ -------------------------------------------------------------------------------- /static/language/epilog/invokeargs.md: -------------------------------------------------------------------------------- 1 | 2 | A comma delimited sequence of complex expressions 3 | 4 | -------------------------------------------------------------------------------- /static/language/prolog/bool.md: -------------------------------------------------------------------------------- 1 | The `Bool` rule defines the syntax of boolean literal in tremor. 2 | -------------------------------------------------------------------------------- /static/language/prolog/forimut.md: -------------------------------------------------------------------------------- 1 | The `ForImut` rule defines an immutable `for` comprehension. 2 | 3 | -------------------------------------------------------------------------------- /static/language/prolog/match.md: -------------------------------------------------------------------------------- 1 | The `Match` rule defines a mutable match statement in tremor. 2 | 3 | -------------------------------------------------------------------------------- /tests/queries/group_each/out: -------------------------------------------------------------------------------- 1 | {"g": "a", "c": 2.0} 2 | {"g": "b", "c": 2.0} 3 | {"g": "c", "c": 2.0} 4 | -------------------------------------------------------------------------------- /tests/queries/pp_alias_operator/foo1/bar.trickle: -------------------------------------------------------------------------------- 1 | define operator counter from generic::counter; 2 | -------------------------------------------------------------------------------- /tests/queries/pp_alias_script/in: -------------------------------------------------------------------------------- 1 | { "a": 1, "b": 2 } 2 | { "a": 2, "b": 2 } 3 | { "a": 3, "b": 2 } 4 | -------------------------------------------------------------------------------- /tests/queries/pp_const/query.trickle: -------------------------------------------------------------------------------- 1 | use example1::c; 2 | 3 | select c::MAP[event] from in into out; -------------------------------------------------------------------------------- /tests/queries/state/in: -------------------------------------------------------------------------------- 1 | { "test" : "foo:bar snot:badger" } 2 | { "test" : "foo:bar snot:badger" } 3 | -------------------------------------------------------------------------------- /tests/query_errors/aggr_arity/query.trickle: -------------------------------------------------------------------------------- 1 | select aggr::stats::sum(event, 1, 2, 3) from in into out; -------------------------------------------------------------------------------- /tests/query_errors/let_in_select/error.re: -------------------------------------------------------------------------------- 1 | ^Found the token `let` but expected one of .*`event`.* 2 | -------------------------------------------------------------------------------- /tests/query_errors/pp_unrecognized_token5/query.trickle: -------------------------------------------------------------------------------- 1 | use foo :: bar use; 2 | 3 | "hello {snot}" 4 | -------------------------------------------------------------------------------- /tests/script_errors/add_overflow/script.tremor: -------------------------------------------------------------------------------- 1 | use std::integer::unsigned; 2 | unsigned::MAX + 1; 3 | -------------------------------------------------------------------------------- /tests/script_errors/const_expr_index_out_of_bounds/script.tremor: -------------------------------------------------------------------------------- 1 | {"snot": [0,1,2,3,4,5,6]}.snot[8] 2 | -------------------------------------------------------------------------------- /tests/script_errors/const_expr_range_bad_end/script.tremor: -------------------------------------------------------------------------------- 1 | {"snot": [0,1,2,3,4,5,6]}.snot[2:"bad"] 2 | -------------------------------------------------------------------------------- /tests/script_errors/heredoc_interpolation_multiline/script.tremor: -------------------------------------------------------------------------------- 1 | """ 2 | #{ " 3 | 4 | } 5 | """ 6 | -------------------------------------------------------------------------------- /tests/script_errors/lexer_unterminated_string2/script.tremor: -------------------------------------------------------------------------------- 1 | let s = "this is a string; 2 | event 3 | -------------------------------------------------------------------------------- /tests/script_runtime_errors/bad_merge2/script.tremor: -------------------------------------------------------------------------------- 1 | patch {"key": 42} of 2 | merge "key" => 7 3 | end -------------------------------------------------------------------------------- /tests/script_runtime_errors/merge_target_no_object/script.tremor: -------------------------------------------------------------------------------- 1 | merge 7 of {"snot": "badger"} end 2 | -------------------------------------------------------------------------------- /tests/script_runtime_errors/meta_and_use/script.tremor: -------------------------------------------------------------------------------- 1 | use std::array; 2 | 3 | let $ = "snot"; 4 | -------------------------------------------------------------------------------- /tests/script_runtime_errors/non_obj_access2/script.tremor: -------------------------------------------------------------------------------- 1 | let key = "badger"; 2 | event.snot[key] 3 | -------------------------------------------------------------------------------- /tests/script_warnings/match_no_default/script.tremor: -------------------------------------------------------------------------------- 1 | match true of 2 | case true => true 3 | end 4 | -------------------------------------------------------------------------------- /tests/scripts/binary/script.tremor: -------------------------------------------------------------------------------- 1 | emit (9.0 >= 2); 2 | { "event": event, "reason": "broken doc" }; 3 | -------------------------------------------------------------------------------- /tests/scripts/const_fn_tremor/in: -------------------------------------------------------------------------------- 1 | 0 2 | 1 3 | 2 4 | 3 5 | 4 6 | 5 7 | 6 8 | 7 9 | 8 10 | 9 11 | -------------------------------------------------------------------------------- /tests/scripts/const_in_const/in: -------------------------------------------------------------------------------- 1 | 0 2 | 1 3 | 2 4 | 3 5 | 4 6 | 5 7 | 6 8 | 7 9 | 8 10 | 9 11 | -------------------------------------------------------------------------------- /tests/scripts/const_of_const/in: -------------------------------------------------------------------------------- 1 | 0 2 | 1 3 | 2 4 | 3 5 | 4 6 | 5 7 | 6 8 | 7 9 | 8 10 | 9 11 | -------------------------------------------------------------------------------- /tests/scripts/fn_nest2_fib/in: -------------------------------------------------------------------------------- 1 | 0 2 | 1 3 | 2 4 | 3 5 | 4 6 | 5 7 | 6 8 | 7 9 | 8 10 | 9 11 | -------------------------------------------------------------------------------- /tests/scripts/fold_array_initial/script.tremor: -------------------------------------------------------------------------------- 1 | for event of 2 | case (k, v) => v + 1 3 | into [] end; -------------------------------------------------------------------------------- /tests/scripts/fold_bool/script.tremor: -------------------------------------------------------------------------------- 1 | for event of 2 | case (k, v) => v 3 | into true use and end 4 | -------------------------------------------------------------------------------- /tests/scripts/fold_bool_or/script.tremor: -------------------------------------------------------------------------------- 1 | for event of 2 | case (k, v) => v 3 | into false use or end -------------------------------------------------------------------------------- /tests/scripts/fold_bool_or_imut/in: -------------------------------------------------------------------------------- 1 | [false, false, false] 2 | [] 3 | [true] 4 | [true, false, "invalid"] -------------------------------------------------------------------------------- /tests/scripts/fold_number_imut/script.tremor: -------------------------------------------------------------------------------- 1 | (for event of 2 | case (k, v) => v 3 | into 0 end) 4 | -------------------------------------------------------------------------------- /tests/scripts/fold_number_op/script.tremor: -------------------------------------------------------------------------------- 1 | for event of 2 | case (k, v) => v 3 | into 1 use * end; -------------------------------------------------------------------------------- /tests/scripts/heredoc_interpolation/script.tremor: -------------------------------------------------------------------------------- 1 | """ 2 | #{event.class} #{event.answer} \#{not} 3 | """ -------------------------------------------------------------------------------- /tests/scripts/heredoc_quoted_curly/script.tremor: -------------------------------------------------------------------------------- 1 | """ 2 | \#{event} = \#{event} = #{event} 3 | """ 4 | -------------------------------------------------------------------------------- /tests/scripts/json/in: -------------------------------------------------------------------------------- 1 | { "test" : "{ \"foo\": \"8J+MiiBzbm90IGJhZGdlcg==\", \"footle\": \"bar\"}" } 2 | -------------------------------------------------------------------------------- /tests/scripts/merge/script.tremor: -------------------------------------------------------------------------------- 1 | merge event of 2 | { "cc": 2, "bb": 3, "aa": null } 3 | end 4 | -------------------------------------------------------------------------------- /tests/scripts/mod_nest2_const/in: -------------------------------------------------------------------------------- 1 | 0 2 | 1 3 | 2 4 | 3 5 | 4 6 | 5 7 | 6 8 | 7 9 | 8 10 | 9 11 | -------------------------------------------------------------------------------- /tests/scripts/patch_default/in: -------------------------------------------------------------------------------- 1 | {"snot": {"badger": 42}} 2 | {"snot": {"otter": 42}} 3 | {"null": null} -------------------------------------------------------------------------------- /tests/scripts/pattern_cmp/in: -------------------------------------------------------------------------------- 1 | 0 2 | 1 3 | 2 4 | 3 5 | 4 6 | 5 7 | 6 8 | 7 9 | 8 10 | 9 11 | -------------------------------------------------------------------------------- /tests/scripts/pp_fn_fib/out: -------------------------------------------------------------------------------- 1 | 0 2 | 1 3 | 1 4 | 2 5 | 3 6 | 5 7 | 8 8 | 13 9 | 21 10 | 34 11 | -------------------------------------------------------------------------------- /tremor-cli/tests/bench/passthrough-json/tags.yaml: -------------------------------------------------------------------------------- 1 | [ 2 | "passthrough", 3 | "codec:json", 4 | ] -------------------------------------------------------------------------------- /tremor-cli/tests/integration/elastic-verify-gd/tags.yaml: -------------------------------------------------------------------------------- 1 | ["elastic", "connector", "cb", "gd", "docker"] -------------------------------------------------------------------------------- /tremor-cli/tests/integration/kafka_connectors/tags.yaml: -------------------------------------------------------------------------------- 1 | ["kafka", "redpanda", "connector", "docker"] -------------------------------------------------------------------------------- /tremor-cli/tests/integration/query-for-locals/tags.yaml: -------------------------------------------------------------------------------- 1 | [ 2 | "query", 3 | "locals" 4 | ] 5 | -------------------------------------------------------------------------------- /tremor-cli/tests/integration/s3-yolo-cb/tags.yaml: -------------------------------------------------------------------------------- 1 | - s3 2 | - connector 3 | - cb 4 | - yolo 5 | - docker -------------------------------------------------------------------------------- /tremor-cli/tests/integration/system-metrics/tags.yaml: -------------------------------------------------------------------------------- 1 | [ 2 | "system", 3 | "metrics" 4 | ] 5 | -------------------------------------------------------------------------------- /demo/data/data.influx.xz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tremor-rs/tremor-runtime/HEAD/demo/data/data.influx.xz -------------------------------------------------------------------------------- /demo/data/data.json.xz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tremor-rs/tremor-runtime/HEAD/demo/data/data.json.xz -------------------------------------------------------------------------------- /demo/data/data.statsd.xz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tremor-rs/tremor-runtime/HEAD/demo/data/data.statsd.xz -------------------------------------------------------------------------------- /demo/data/data.tremor.xz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tremor-rs/tremor-runtime/HEAD/demo/data/data.tremor.xz -------------------------------------------------------------------------------- /static/language/epilog/bitandexprimut.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | ```tremor 4 | let example = a & (b & 0); 5 | ``` 6 | 7 | -------------------------------------------------------------------------------- /static/language/epilog/bitorexprimut.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | ```tremor 4 | let example = a | (b & 0); 5 | ``` 6 | 7 | -------------------------------------------------------------------------------- /static/language/epilog/bitxorexprimut.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | ```tremor 4 | let example = a ^ (b & 0); 5 | ``` 6 | 7 | -------------------------------------------------------------------------------- /static/language/epilog/eqexprimut.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | ```tremor 4 | let example = a == (b & 0); 5 | ``` 6 | 7 | -------------------------------------------------------------------------------- /static/language/epilog/nil.md: -------------------------------------------------------------------------------- 1 | ### Example 2 | 3 | ```tremor 4 | null # The `null` literal value 5 | ``` 6 | -------------------------------------------------------------------------------- /static/language/epilog/orexprimut.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | ```tremor 4 | let example = a or (b & 0); 5 | ``` 6 | 7 | -------------------------------------------------------------------------------- /static/language/epilog/patternfields.md: -------------------------------------------------------------------------------- 1 | Wraps a macro invocation rule for for use in other rules. 2 | 3 | -------------------------------------------------------------------------------- /static/language/epilog/xorexprimut.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | ```tremor 4 | let example = a ^ (b & 0); 5 | ``` 6 | 7 | -------------------------------------------------------------------------------- /static/language/prolog/define.md: -------------------------------------------------------------------------------- 1 | The `Define` rule allows connectors and pipelines to be specified. 2 | 3 | -------------------------------------------------------------------------------- /static/language/prolog/exprimut.md: -------------------------------------------------------------------------------- 1 | The `ExprImut` is the root of immutable expressions in tremor. 2 | 3 | -------------------------------------------------------------------------------- /static/language/prolog/exprpath.md: -------------------------------------------------------------------------------- 1 | The `ExprPath` rule defines path operations for expressions. 2 | 3 | -------------------------------------------------------------------------------- /static/language/prolog/fields.md: -------------------------------------------------------------------------------- 1 | The `Fields` rule defines a set of comma delimited `Field` rules. 2 | 3 | -------------------------------------------------------------------------------- /static/language/prolog/invoke.md: -------------------------------------------------------------------------------- 1 | The `Invoke` rule specifies the syntax of a function invocation. 2 | 3 | -------------------------------------------------------------------------------- /static/language/prolog/matchimut.md: -------------------------------------------------------------------------------- 1 | The `MatchImut` rule defines a `match` statement in tremor. 2 | 3 | -------------------------------------------------------------------------------- /static/language/prolog/ports.md: -------------------------------------------------------------------------------- 1 | The `Ports` rule defines a `,` comma delimited set of stream ports. 2 | 3 | -------------------------------------------------------------------------------- /static/language/prolog/whenclause.md: -------------------------------------------------------------------------------- 1 | The `WhenClause` rule defines an optional guard expression. 2 | 3 | -------------------------------------------------------------------------------- /static/language/prolog/window.md: -------------------------------------------------------------------------------- 1 | The `Window` rule defines a modular target to a window definition. 2 | 3 | -------------------------------------------------------------------------------- /tests/queries/pipeline_nested_script/in: -------------------------------------------------------------------------------- 1 | { "a": 1, "b": 2 } 2 | { "a": 2, "b": 2 } 3 | { "a": 3, "b": 2 } 4 | -------------------------------------------------------------------------------- /tests/queries/pp_script/foo6/bar.trickle: -------------------------------------------------------------------------------- 1 | define script add 2 | script 3 | event.a + event.b 4 | end; 5 | -------------------------------------------------------------------------------- /tests/query_errors/const_in_select/error.re: -------------------------------------------------------------------------------- 1 | ^Found the token `const` but expected one of .*`event`.* 2 | -------------------------------------------------------------------------------- /tests/query_runtime_errors/binary_operators_or_left/query.trickle: -------------------------------------------------------------------------------- 1 | select event.a or event.b from in into out; -------------------------------------------------------------------------------- /tests/script_errors/const_expr_range_bad_start/script.tremor: -------------------------------------------------------------------------------- 1 | {"snot": [0,1,2,3,4,5,6]}.snot["bad":2] 2 | -------------------------------------------------------------------------------- /tests/script_errors/const_expr_range_out_of_bounds/script.tremor: -------------------------------------------------------------------------------- 1 | {"snot": [0,1,2,3,4,5,6]}.snot[4:8] 2 | -------------------------------------------------------------------------------- /tests/script_errors/heredoc_interpolation_extractor/script.tremor: -------------------------------------------------------------------------------- 1 | let heredoc = """ 2 | #{ | } 3 | """; 4 | -------------------------------------------------------------------------------- /tests/script_errors/heredoc_interpolation_invalid_unicode/script.tremor: -------------------------------------------------------------------------------- 1 | 1; """ 2 | { "\u1" } 3 | """ 4 | -------------------------------------------------------------------------------- /tests/script_errors/pp_unrecognized_token5/script.tremor: -------------------------------------------------------------------------------- 1 | use foo :: bar use; 2 | 3 | "hello {snot}" 4 | -------------------------------------------------------------------------------- /tests/script_errors/unknown_function_in_function/script.tremor: -------------------------------------------------------------------------------- 1 | fn f() with 2 | g(1,2) 3 | end; 4 | 5 | f() -------------------------------------------------------------------------------- /tests/script_runtime_errors/patch_on_non_obj/script.tremor: -------------------------------------------------------------------------------- 1 | patch [] of 2 | move "a" => "b" 3 | end 4 | -------------------------------------------------------------------------------- /tests/script_warnings/for_fold_op/script.tremor: -------------------------------------------------------------------------------- 1 | for event of 2 | case (k, v) => v 3 | into 0 use + end 4 | -------------------------------------------------------------------------------- /tests/scripts/array_pattern_ignore/in: -------------------------------------------------------------------------------- 1 | 0 2 | 1 3 | 2 4 | 3 5 | 4 6 | 5 7 | 6 8 | 7 9 | 8 10 | 9 11 | -------------------------------------------------------------------------------- /tests/scripts/const_fn_tremor/out: -------------------------------------------------------------------------------- 1 | 2 2 | 3 3 | 4 4 | 5 5 | 6 6 | 7 7 | 8 8 | 9 9 | 10 10 | 11 11 | -------------------------------------------------------------------------------- /tests/scripts/escape_in_extractor/in: -------------------------------------------------------------------------------- 1 | 0 2 | 1 3 | 2 4 | 3 5 | 4 6 | 5 7 | 6 8 | 7 9 | 8 10 | 9 11 | -------------------------------------------------------------------------------- /tests/scripts/fn_nest2_abs_fib/in: -------------------------------------------------------------------------------- 1 | 0 2 | 1 3 | 2 4 | 3 5 | 4 6 | 5 7 | 6 8 | 7 9 | 8 10 | 9 11 | -------------------------------------------------------------------------------- /tests/scripts/fold_bool_imut/script.tremor: -------------------------------------------------------------------------------- 1 | (for event of 2 | case (k, v) => v 3 | into true use and end) -------------------------------------------------------------------------------- /tests/scripts/fold_bool_or_imut/script.tremor: -------------------------------------------------------------------------------- 1 | (for event of 2 | case (k, v) => v 3 | into false use or end) -------------------------------------------------------------------------------- /tests/scripts/fold_record/script.tremor: -------------------------------------------------------------------------------- 1 | for event of 2 | case (k, v) => {"#{k}": v + 1} 3 | into {} end; -------------------------------------------------------------------------------- /tests/scripts/heredoc_interpolation_quotes/script.tremor: -------------------------------------------------------------------------------- 1 | """ 2 | "#{event}" => #{"tremolo"} 3 | """ 4 | -------------------------------------------------------------------------------- /tests/scripts/heredoc_quoted_curly/in: -------------------------------------------------------------------------------- 1 | 0 2 | 1 3 | 2 4 | 3 5 | 4 6 | 5 7 | 6 8 | 7 9 | 8 10 | 9 11 | -------------------------------------------------------------------------------- /tests/scripts/let_field/script.tremor: -------------------------------------------------------------------------------- 1 | let key = "key"; 2 | 3 | let event[key] = "value"; 4 | emit event 5 | -------------------------------------------------------------------------------- /tests/scripts/mod_access_const/in: -------------------------------------------------------------------------------- 1 | 0 2 | 1 3 | 2 4 | 3 5 | 4 6 | 5 7 | 6 8 | 7 9 | 8 10 | 9 11 | -------------------------------------------------------------------------------- /tests/scripts/mod_nest2_const/beep.tremor: -------------------------------------------------------------------------------- 1 | const SNOT = "snot"; 2 | const BADGER = ("badger " + SNOT); 3 | -------------------------------------------------------------------------------- /tests/scripts/mod_nest2_const/out: -------------------------------------------------------------------------------- 1 | 0 2 | 1 3 | 1 4 | 2 5 | 3 6 | 5 7 | 8 8 | 13 9 | 21 10 | 34 11 | -------------------------------------------------------------------------------- /tests/scripts/nested_use_with_path/in: -------------------------------------------------------------------------------- 1 | 0 2 | 1 3 | 2 4 | 3 5 | 4 6 | 5 7 | 6 8 | 7 9 | 8 10 | 9 11 | -------------------------------------------------------------------------------- /tests/scripts/patch_default_key/script.tremor: -------------------------------------------------------------------------------- 1 | patch event of 2 | default "snot" => "otter" 3 | end 4 | -------------------------------------------------------------------------------- /tests/scripts/pattern_cmp/out: -------------------------------------------------------------------------------- 1 | "0" 2 | "1" 3 | 2 4 | 3 5 | 4 6 | 5 7 | 6 8 | 7 9 | "8" 10 | "9" 11 | -------------------------------------------------------------------------------- /tests/scripts/string_quoted_curly/in: -------------------------------------------------------------------------------- 1 | 0 2 | 1 3 | 2 4 | 3 5 | 4 6 | 5 7 | 6 8 | 7 9 | 8 10 | 9 11 | -------------------------------------------------------------------------------- /tests/scripts/subslice_repeated/script.tremor: -------------------------------------------------------------------------------- 1 | event[1:10][1:9][1:8][1:7][1:6][1:5][1:4][1:3][1:2][0] 2 | -------------------------------------------------------------------------------- /tremor-cli/tests/api/data/bench-pipeline.trickle: -------------------------------------------------------------------------------- 1 | #!config id = "main" 2 | select event from in into out; 3 | -------------------------------------------------------------------------------- /tremor-cli/tests/bench/passthrough-binflux/tags.yaml: -------------------------------------------------------------------------------- 1 | [ 2 | "passthrough", 3 | "codec:binflux", 4 | ] -------------------------------------------------------------------------------- /tremor-cli/tests/bench/passthrough-influx/tags.yaml: -------------------------------------------------------------------------------- 1 | [ 2 | "passthrough", 3 | "codec:influx" 4 | ] -------------------------------------------------------------------------------- /tremor-cli/tests/bench/passthrough-statsd/tags.yaml: -------------------------------------------------------------------------------- 1 | [ 2 | "passthrough", 3 | "codec:statsd" 4 | ] -------------------------------------------------------------------------------- /tremor-cli/tests/bench/passthrough-tremor/tags.yaml: -------------------------------------------------------------------------------- 1 | [ 2 | "passthrough", 3 | "codec:tremor", 4 | ] -------------------------------------------------------------------------------- /tremor-cli/tests/integration/crononome/expected_out.json: -------------------------------------------------------------------------------- 1 | {"name":"test","payload":{"snot":"badger"}} 2 | -------------------------------------------------------------------------------- /tremor-cli/tests/integration/hygienic-runtime-errors/tags.yaml: -------------------------------------------------------------------------------- 1 | [ 2 | "hygienic", 3 | "errors" 4 | ] -------------------------------------------------------------------------------- /tremor-cli/tests/integration/meta.yaml: -------------------------------------------------------------------------------- 1 | { 2 | "kind": "Integration", 3 | "includes": "*" 4 | } 5 | -------------------------------------------------------------------------------- /tremor-cli/tests/integration/udp-postprocessors/tags.yaml: -------------------------------------------------------------------------------- 1 | [ 2 | "postprocessors", 3 | "udp" 4 | ] -------------------------------------------------------------------------------- /tremor-cli/tests/integration/unix-socket/tags.yaml: -------------------------------------------------------------------------------- 1 | ["unix_domain_sockets", "unix", "connectors", "connector"] -------------------------------------------------------------------------------- /tremor-cli/tests/integration/unknown-connector/tags.yaml: -------------------------------------------------------------------------------- 1 | [ 2 | "unknown", 3 | "connector" 4 | ] 5 | -------------------------------------------------------------------------------- /tremor-cli/tests/integration/unknown-operator/tags.yaml: -------------------------------------------------------------------------------- 1 | [ 2 | "unknown", 3 | "operator" 4 | ] 5 | -------------------------------------------------------------------------------- /tremor-cli/tests/stdlib/std/meta.yaml: -------------------------------------------------------------------------------- 1 | { 2 | "kind": "Unit", 3 | "includes": "all.tremor" 4 | } 5 | -------------------------------------------------------------------------------- /.checkignore: -------------------------------------------------------------------------------- 1 | target 2 | property_testing 3 | depricated 4 | tests 5 | build.rs 6 | benches.old 7 | benches 8 | -------------------------------------------------------------------------------- /bench/recurse/input.json: -------------------------------------------------------------------------------- 1 | 1 2 | 10 3 | 100 4 | 1000 5 | 500 6 | 250 7 | 700 8 | 99 9 | 42 10 | 400 11 | 75 -------------------------------------------------------------------------------- /demo/data/data.binflux.xz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tremor-rs/tremor-runtime/HEAD/demo/data/data.binflux.xz -------------------------------------------------------------------------------- /demo/data/data.msgpack.xz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tremor-rs/tremor-runtime/HEAD/demo/data/data.msgpack.xz -------------------------------------------------------------------------------- /demo/data/numbers.json.xz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tremor-rs/tremor-runtime/HEAD/demo/data/numbers.json.xz -------------------------------------------------------------------------------- /static/language/epilog/bitshiftexprimut.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | ```tremor 4 | let example = a >>> (b & 0); 5 | ``` 6 | 7 | -------------------------------------------------------------------------------- /static/language/epilog/groupdefs.md: -------------------------------------------------------------------------------- 1 | 2 | Wraps a macro call for use by other productions in the grammar 3 | 4 | -------------------------------------------------------------------------------- /static/language/prolog/argsendclause.md: -------------------------------------------------------------------------------- 1 | The `ArgsEndClause` rule defines an argument block with an `end` 2 | 3 | -------------------------------------------------------------------------------- /static/language/prolog/argspath.md: -------------------------------------------------------------------------------- 1 | The `ArgsPath` rule defines path operations for `args` references. 2 | 3 | -------------------------------------------------------------------------------- /static/language/prolog/block.md: -------------------------------------------------------------------------------- 1 | The `Block` rule defines a semi-colon delimited set of `Expr` rules. 2 | 3 | -------------------------------------------------------------------------------- /static/language/prolog/flowstmtinner.md: -------------------------------------------------------------------------------- 1 | The `FlowStmtInner` rule defines the body of a flow definition. 2 | 3 | -------------------------------------------------------------------------------- /static/language/prolog/ident.md: -------------------------------------------------------------------------------- 1 | An `Ident` is an identifier - a user defined name for a tremor value. 2 | 3 | -------------------------------------------------------------------------------- /static/language/prolog/int.md: -------------------------------------------------------------------------------- 1 | The `Int` rule literal specifes the syntax of integer literals in tremor. 2 | 3 | -------------------------------------------------------------------------------- /static/language/prolog/invokeargs.md: -------------------------------------------------------------------------------- 1 | The `InvokeArgs` rule defines a sequence of expression statements. 2 | 3 | -------------------------------------------------------------------------------- /tests/queries/pp_alias_script/foo2/bar.trickle: -------------------------------------------------------------------------------- 1 | define script add 2 | script 3 | event.a + event.b 4 | end; 5 | -------------------------------------------------------------------------------- /tests/queries/pp_win/foo7/bar.trickle: -------------------------------------------------------------------------------- 1 | define window by_two from tumbling 2 | with 3 | size = 2 4 | end; 5 | -------------------------------------------------------------------------------- /tests/queries/with_config/query.trickle: -------------------------------------------------------------------------------- 1 | #!config metrics_interval_s = 10 2 | 3 | select event from in into out; -------------------------------------------------------------------------------- /tests/query_errors/aggr_in_aggr/query.trickle: -------------------------------------------------------------------------------- 1 | select aggr::stats::sum(aggr::stats::sum(event)) from in into out; -------------------------------------------------------------------------------- /tests/query_runtime_errors/binary_operators_and_left/query.trickle: -------------------------------------------------------------------------------- 1 | select event.a and event.b from in into out; -------------------------------------------------------------------------------- /tests/query_runtime_errors/binary_operators_and_right/query.trickle: -------------------------------------------------------------------------------- 1 | select event.a and event.b from in into out; -------------------------------------------------------------------------------- /tests/query_runtime_errors/binary_operators_or_right/query.trickle: -------------------------------------------------------------------------------- 1 | select event.a or event.b from in into out; -------------------------------------------------------------------------------- /tests/query_runtime_errors/binary_operators_xor_left/query.trickle: -------------------------------------------------------------------------------- 1 | select event.a xor event.b from in into out; -------------------------------------------------------------------------------- /tests/query_runtime_errors/binary_operators_xor_right/query.trickle: -------------------------------------------------------------------------------- 1 | select event.a xor event.b from in into out; -------------------------------------------------------------------------------- /tests/script_errors/bad_fold/script.tremor: -------------------------------------------------------------------------------- 1 | for event of 2 | case (k, v) => v 3 | into [] use merge end; 4 | -------------------------------------------------------------------------------- /tests/script_errors/function_error_3/script.tremor: -------------------------------------------------------------------------------- 1 | use std::string; 2 | string::format(7, "snot", "badger") 3 | -------------------------------------------------------------------------------- /tests/script_errors/lexer_heredoc_interpolation3/script.tremor: -------------------------------------------------------------------------------- 1 | use std::string; 2 | let x = """ 3 | #{"""; 4 | -------------------------------------------------------------------------------- /tests/script_runtime_errors/bad_fold_type/script.tremor: -------------------------------------------------------------------------------- 1 | for event of 2 | case (k,v) => [k, v] 3 | into {} end; -------------------------------------------------------------------------------- /tests/script_runtime_errors/match_no_clause_hit/script.tremor: -------------------------------------------------------------------------------- 1 | match true of 2 | case false => true 3 | end 4 | -------------------------------------------------------------------------------- /tests/script_runtime_errors/merge_assign_target_new_no_object/script.tremor: -------------------------------------------------------------------------------- 1 | let event = merge event of 7 end 2 | -------------------------------------------------------------------------------- /tests/script_runtime_errors/patch_key_exists/script.tremor: -------------------------------------------------------------------------------- 1 | patch {"a": 1} of 2 | insert "a" => 2 3 | end 4 | -------------------------------------------------------------------------------- /tests/scripts/array_paths/in: -------------------------------------------------------------------------------- 1 | { "snot": [ 1, [2, 22, [{"ping": "pong"},1,2,3,4,5,6,7,8,9], 2222], 3, 4, 5 ] } 2 | -------------------------------------------------------------------------------- /tests/scripts/array_pattern_element/in: -------------------------------------------------------------------------------- 1 | 0 2 | 1 3 | 2 4 | 3 5 | 4 6 | 5 7 | 6 8 | 7 9 | 8 10 | 9 11 | -------------------------------------------------------------------------------- /tests/scripts/const_in_const/out: -------------------------------------------------------------------------------- 1 | 6 2 | 7 3 | 8 4 | 9 5 | 10 6 | 11 7 | 12 8 | 13 9 | 14 10 | 15 11 | -------------------------------------------------------------------------------- /tests/scripts/fold_array_initial_imut/script.tremor: -------------------------------------------------------------------------------- 1 | (for event of 2 | case (k, v) => v + 1 3 | into [] end) 4 | -------------------------------------------------------------------------------- /tests/scripts/fold_array_initial_op/script.tremor: -------------------------------------------------------------------------------- 1 | for event of 2 | case (k, v) => v + 1 3 | into [1] use + end; -------------------------------------------------------------------------------- /tests/scripts/fold_number_op_imut/script.tremor: -------------------------------------------------------------------------------- 1 | (for event of 2 | case (k, v) => v 3 | into 1 use * end) 4 | -------------------------------------------------------------------------------- /tests/scripts/influx/in: -------------------------------------------------------------------------------- 1 | { "meta" : "wea\\ ther,location=us-midwest temperature=82.0 1465839830100400200" } 2 | -------------------------------------------------------------------------------- /tests/scripts/nested_use_with_path/out: -------------------------------------------------------------------------------- 1 | 0 2 | 1 3 | 2 4 | 3 5 | 4 6 | 5 7 | 6 8 | 7 9 | 8 10 | 9 11 | -------------------------------------------------------------------------------- /tests/scripts/record_add/in: -------------------------------------------------------------------------------- 1 | {} 2 | {"snot": "cake"} 3 | {"badger": "snot"} 4 | {"snot": "cake", "badger": "snot"} -------------------------------------------------------------------------------- /tests/scripts/string_interpolation_escaped/out: -------------------------------------------------------------------------------- 1 | ["#{} this is a format string","#{} this is a format string"] 2 | -------------------------------------------------------------------------------- /tests/scripts/tuple_pattern/in: -------------------------------------------------------------------------------- 1 | "snot" 2 | "snot/badger" 3 | "api/v1/badger/snot" 4 | "" 5 | "badger/snot" 6 | -------------------------------------------------------------------------------- /tremor-cli/tests/api/data/metronome-pipeline.trickle: -------------------------------------------------------------------------------- 1 | #!config id = "main" 2 | select event from in into out; 3 | -------------------------------------------------------------------------------- /tremor-cli/tests/bench/for-array/tags.yaml: -------------------------------------------------------------------------------- 1 | [ 2 | "throughput", 3 | "codec:json", 4 | "focus:for" 5 | ] -------------------------------------------------------------------------------- /tremor-cli/tests/bench/for-sum/tags.yaml: -------------------------------------------------------------------------------- 1 | [ 2 | "throughput", 3 | "codec:json", 4 | "focus:for" 5 | ] -------------------------------------------------------------------------------- /tremor-cli/tests/bench/passthrough-dogstatsd/tags.yaml: -------------------------------------------------------------------------------- 1 | [ 2 | "passthrough", 3 | "codec:dogstatsd" 4 | ] -------------------------------------------------------------------------------- /tremor-cli/tests/bench/passthrough-msgpack/tags.yaml: -------------------------------------------------------------------------------- 1 | [ 2 | "passthrough", 3 | "codec:msgpack", 4 | ] -------------------------------------------------------------------------------- /tremor-cli/tests/bench/throughput-tcp-json/tags.yaml: -------------------------------------------------------------------------------- 1 | [ 2 | "throughput", 3 | "codec:json", 4 | "tcp" 5 | ] -------------------------------------------------------------------------------- /tremor-cli/tests/integration/stdio/tags.yaml: -------------------------------------------------------------------------------- 1 | ["stdio", "connectors", "connector", "stdin", "stdout", "stderr"] -------------------------------------------------------------------------------- /tremor-cli/tests/stdlib/tremor/meta.yaml: -------------------------------------------------------------------------------- 1 | { 2 | "kind": "Unit", 3 | "includes": "all.tremor" 4 | } 5 | -------------------------------------------------------------------------------- /demo/data/data.dogstatsd.xz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tremor-rs/tremor-runtime/HEAD/demo/data/data.dogstatsd.xz -------------------------------------------------------------------------------- /static/language/epilog/define.md: -------------------------------------------------------------------------------- 1 | 2 | Within a flow definition, allows pipeline and connectors to be defined. 3 | 4 | -------------------------------------------------------------------------------- /static/language/epilog/embeddedscriptcontent.md: -------------------------------------------------------------------------------- 1 | 2 | A single expression embedded within an embedded script 3 | 4 | -------------------------------------------------------------------------------- /static/language/epilog/invoke.md: -------------------------------------------------------------------------------- 1 | 2 | ```tremor 3 | use std::string; 4 | 5 | string::len("snot") 6 | ``` 7 | 8 | -------------------------------------------------------------------------------- /static/language/prolog/argswithend.md: -------------------------------------------------------------------------------- 1 | The `ArgsWithEnd` rule defines an arguments block with an `end` block. 2 | 3 | -------------------------------------------------------------------------------- /static/language/prolog/constpath.md: -------------------------------------------------------------------------------- 1 | The `ConstPath` rule enables path operations on module scoped references. 2 | 3 | -------------------------------------------------------------------------------- /static/language/prolog/create.md: -------------------------------------------------------------------------------- 1 | The `Create` rule creates instances of connectors and pipelines in a flow. 2 | 3 | -------------------------------------------------------------------------------- /static/language/prolog/doccomment_.md: -------------------------------------------------------------------------------- 1 | The `DocComment_` rule is an internal part of the `DocComment` rule 2 | 3 | -------------------------------------------------------------------------------- /static/language/prolog/modcomment_.md: -------------------------------------------------------------------------------- 1 | The `ModComment_` rule is an internal part of the `ModComment` rule 2 | 3 | -------------------------------------------------------------------------------- /static/language/prolog/stmts.md: -------------------------------------------------------------------------------- 1 | The `Stmts` rule defines a `;` semi-colon delimited sequence of `Stmt` rules. 2 | 3 | -------------------------------------------------------------------------------- /static/language/prolog/stringpart.md: -------------------------------------------------------------------------------- 1 | The `StringPart` rule defines a simple or heredoc style string part. 2 | 3 | -------------------------------------------------------------------------------- /tests/flow_errors/connector_no_kind/flow.troy: -------------------------------------------------------------------------------- 1 | define flow error 2 | flow 3 | define connector empty; 4 | end; 5 | -------------------------------------------------------------------------------- /tests/queries/pp_alias_win/foo3/bar.trickle: -------------------------------------------------------------------------------- 1 | define window by_two from tumbling 2 | with 3 | size = 2 4 | end; 5 | -------------------------------------------------------------------------------- /tests/queries/state_counter_operator/in: -------------------------------------------------------------------------------- 1 | { "test" : "foo:bar snot:badger" } 2 | { "test" : "foo:bar snot:badger" } 3 | -------------------------------------------------------------------------------- /tests/queries/window_by_two_scripted/in: -------------------------------------------------------------------------------- 1 | 1 2 | 2 3 | 3 4 | 4 5 | 5 6 | 6 7 | 7 8 | 8 9 | 9 10 | "emit" 11 | -------------------------------------------------------------------------------- /tests/query_errors/local_in_having/query.trickle: -------------------------------------------------------------------------------- 1 | select 2 | event 3 | from in 4 | into out 5 | having a + b > 3; 6 | -------------------------------------------------------------------------------- /tests/query_errors/local_in_where/query.trickle: -------------------------------------------------------------------------------- 1 | select 2 | event 3 | from in 4 | where a + b > 3 5 | into out; 6 | -------------------------------------------------------------------------------- /tests/script_errors/bad_fold_imut/script.tremor: -------------------------------------------------------------------------------- 1 | (for event of 2 | case (k, v) => v 3 | into [] use merge end) 4 | -------------------------------------------------------------------------------- /tests/script_errors/heredoc_interpolation_ident/script.tremor: -------------------------------------------------------------------------------- 1 | """ 2 | before #{ `ident unfinished } after 3 | """ 4 | -------------------------------------------------------------------------------- /tests/script_errors/invalid_extractor/script.tremor: -------------------------------------------------------------------------------- 1 | match ecent of 2 | case %{ key ~= re|(| } => true 3 | end 4 | -------------------------------------------------------------------------------- /tests/script_errors/lexer_unterminated_extractor/script.tremor: -------------------------------------------------------------------------------- 1 | match event of 2 | case %{ msg = glob|info*l } => true -------------------------------------------------------------------------------- /tests/script_errors/unknown_extractor/script.tremor: -------------------------------------------------------------------------------- 1 | match ecent of 2 | case %{ key ~= snot|| } => true 3 | end 4 | -------------------------------------------------------------------------------- /tests/script_runtime_errors/bad_fold_op/script.tremor: -------------------------------------------------------------------------------- 1 | for event of 2 | case (k, v) => v 3 | into [] use / end 4 | -------------------------------------------------------------------------------- /tests/script_runtime_errors/fold_bool_op/script.tremor: -------------------------------------------------------------------------------- 1 | for event of 2 | case (k, v) => v 3 | into true use and end -------------------------------------------------------------------------------- /tests/script_runtime_errors/fold_bool_or/script.tremor: -------------------------------------------------------------------------------- 1 | for event of 2 | case (k, v) => v 3 | into false use or end -------------------------------------------------------------------------------- /tests/script_runtime_errors/function_error_2/script.tremor: -------------------------------------------------------------------------------- 1 | use std::math; 2 | let a = 7; 3 | math::max("snot", a) 4 | -------------------------------------------------------------------------------- /tests/script_runtime_errors/patch_update_key_missing/script.tremor: -------------------------------------------------------------------------------- 1 | patch {"a": 1} of 2 | update "b" => 2 3 | end 4 | -------------------------------------------------------------------------------- /tests/scripts/array_comprehension/out: -------------------------------------------------------------------------------- 1 | [ [ 0, "one", "other" ], [ 1, "two", "other" ], [ 2, "three", "other" ] ] 2 | -------------------------------------------------------------------------------- /tests/scripts/bit_ops/out: -------------------------------------------------------------------------------- 1 | ["bitwise AND",2,42,0,2,-42,true,false,"bitwise XOR",40,-44,42,-44,40,false,true,0,-4,0] 2 | -------------------------------------------------------------------------------- /tests/scripts/drop/script.tremor: -------------------------------------------------------------------------------- 1 | match event % 2 of 2 | case 0 => emit => "out" 3 | case 1 => drop 4 | end 5 | -------------------------------------------------------------------------------- /tests/scripts/empty_array_pattern/in: -------------------------------------------------------------------------------- 1 | [ ] 2 | {} 3 | null 4 | true 5 | 1 6 | 2.5 7 | "string" 8 | [ "full array" ] 9 | -------------------------------------------------------------------------------- /tests/scripts/fold_record_imut/script.tremor: -------------------------------------------------------------------------------- 1 | (for event of 2 | case (k, v) => {"#{k}": v + 1} 3 | into {} end) 4 | -------------------------------------------------------------------------------- /tests/scripts/heredoc_interpolation_quotes/in: -------------------------------------------------------------------------------- 1 | 0 2 | 1 3 | 2 4 | 3 5 | 4 6 | 5 7 | 6 8 | 7 9 | 8 10 | 9 11 | -------------------------------------------------------------------------------- /tests/scripts/mod_access_const/out: -------------------------------------------------------------------------------- 1 | 42 2 | 43 3 | 44 4 | 45 5 | 46 6 | 47 7 | 48 8 | 49 9 | 50 10 | 51 11 | -------------------------------------------------------------------------------- /tests/scripts/pass_args/out: -------------------------------------------------------------------------------- 1 | [0] 2 | [1] 3 | [2] 4 | [3] 5 | [4] 6 | [5] 7 | [6] 8 | [7] 9 | [8] 10 | [9] 11 | -------------------------------------------------------------------------------- /tests/scripts/patch_default/script.tremor: -------------------------------------------------------------------------------- 1 | patch event of 2 | default => {"snot": {"badger": "goose"}} 3 | end 4 | -------------------------------------------------------------------------------- /tests/scripts/pp_nest0/foo4.tremor: -------------------------------------------------------------------------------- 1 | ### A foo module 2 | 3 | ## the badger constant 4 | const SNOT = "badger"; 5 | -------------------------------------------------------------------------------- /tests/scripts/recordpattern/in: -------------------------------------------------------------------------------- 1 | {"key": 7} 2 | {"key": 42} 3 | {"key": [42]} 4 | {"key": [7]} 5 | {"key": {"key2": 42}} -------------------------------------------------------------------------------- /tests/scripts/string_interpolation_import/in: -------------------------------------------------------------------------------- 1 | 0 2 | 1 3 | 2 4 | 3 5 | 4 6 | 5 7 | 6 8 | 7 9 | 8 10 | 9 11 | -------------------------------------------------------------------------------- /tests/scripts/string_interpolation_prefix/in: -------------------------------------------------------------------------------- 1 | 0 2 | 1 3 | 2 4 | 3 5 | 4 6 | 5 7 | 6 8 | 7 9 | 8 10 | 9 11 | -------------------------------------------------------------------------------- /tests/scripts/string_interpolation_quotes/in: -------------------------------------------------------------------------------- 1 | 0 2 | 1 3 | 2 4 | 3 5 | 4 6 | 5 7 | 6 8 | 7 9 | 8 10 | 9 11 | -------------------------------------------------------------------------------- /tests/scripts/string_interpolation_regexp/script.tremor: -------------------------------------------------------------------------------- 1 | use std::re; 2 | re::replace_all("[0-9]{4}", event, "####") -------------------------------------------------------------------------------- /tests/scripts/string_interpolation_simple/in: -------------------------------------------------------------------------------- 1 | 0 2 | 1 3 | 2 4 | 3 5 | 4 6 | 5 7 | 6 8 | 7 9 | 8 10 | 9 11 | -------------------------------------------------------------------------------- /tremor-cli/tests/bench/for-record-fn/tags.yaml: -------------------------------------------------------------------------------- 1 | [ 2 | "throughput", 3 | "codec:json", 4 | "focus:for" 5 | ] -------------------------------------------------------------------------------- /tremor-cli/tests/bench/for-record/tags.yaml: -------------------------------------------------------------------------------- 1 | [ 2 | "throughput", 3 | "codec:json", 4 | "focus:for" 5 | ] -------------------------------------------------------------------------------- /tremor-cli/tests/integration/large-json/tags.yaml: -------------------------------------------------------------------------------- 1 | [ 2 | "query", 3 | "passthrough", 4 | "large" 5 | ] 6 | -------------------------------------------------------------------------------- /tremor-cli/tests/integration/s3-consistent-cb/tags.yaml: -------------------------------------------------------------------------------- 1 | - s3 2 | - connector 3 | - cb 4 | - consistent 5 | - docker -------------------------------------------------------------------------------- /tremor-cli/tests/integration/s3-yolo-cb/env.yaml: -------------------------------------------------------------------------------- 1 | AWS_ACCESS_KEY_ID: tremor 2 | AWS_SECRET_ACCESS_KEY: snot_badger 3 | -------------------------------------------------------------------------------- /tremor-cli/tests/integration/ws-tls/expected.json: -------------------------------------------------------------------------------- 1 | ["snot","badger"] 2 | ["fleek","flook"] 3 | {"":null,"NaN":42.0} 4 | -------------------------------------------------------------------------------- /bench/group_by_evil/main.trickle: -------------------------------------------------------------------------------- 1 | use tremor::system; 2 | 3 | select event from in group by system::ingest_ns() into out; -------------------------------------------------------------------------------- /demo/data/apache_access_logs.xz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tremor-rs/tremor-runtime/HEAD/demo/data/apache_access_logs.xz -------------------------------------------------------------------------------- /static/language/prolog/connecttopipeline.md: -------------------------------------------------------------------------------- 1 | The `ConnectToPipeline` rule defines route to a pipeline instance. 2 | 3 | -------------------------------------------------------------------------------- /static/language/prolog/embeddedscriptimut.md: -------------------------------------------------------------------------------- 1 | The `EmbeddedScriptImut` rule defines an optional embedded `script`. 2 | 3 | -------------------------------------------------------------------------------- /static/language/prolog/float.md: -------------------------------------------------------------------------------- 1 | The `Float` rule literal specifes the syntax of IEEE float literals in tremor. 2 | 3 | -------------------------------------------------------------------------------- /static/language/prolog/fnargs.md: -------------------------------------------------------------------------------- 1 | The `FnArgs` rule defines `,` comma delimited arguments to a tremor function. 2 | 3 | -------------------------------------------------------------------------------- /static/language/prolog/groupdefs.md: -------------------------------------------------------------------------------- 1 | The `GroupDefs` rule defines a `,` comma delimited set of `GroupDef` rules. 2 | 3 | -------------------------------------------------------------------------------- /static/language/prolog/groupdefs_.md: -------------------------------------------------------------------------------- 1 | The `GroupDefs_` rule defines a `,` comma delimited set of `GroupDef` rules. 2 | 3 | -------------------------------------------------------------------------------- /static/language/prolog/literal.md: -------------------------------------------------------------------------------- 1 | The `Literal` rule defines the set of primitive literals supported in tremor. 2 | 3 | -------------------------------------------------------------------------------- /static/language/prolog/localpath.md: -------------------------------------------------------------------------------- 1 | The `LocalPath` rule enables path operations on locally scoped identifiers. 2 | 3 | -------------------------------------------------------------------------------- /static/language/prolog/merge.md: -------------------------------------------------------------------------------- 1 | The `Merge` rule defines a merge operation of two complex immutable expressions. 2 | 3 | -------------------------------------------------------------------------------- /static/language/prolog/withexprs.md: -------------------------------------------------------------------------------- 1 | The `WithExprs` rule defines a `,` comma delimited set of `WithExpr` rules. 2 | 3 | -------------------------------------------------------------------------------- /tests/queries/binary_op_short_circuit/out: -------------------------------------------------------------------------------- 1 | {"a": true, "b": false, "c": true, "d": false, "e": true, "f": true, "g": false} -------------------------------------------------------------------------------- /tests/queries/pp_config_directive/foo4/bar.trickle: -------------------------------------------------------------------------------- 1 | define window by_two from tumbling 2 | with 3 | size = 2 4 | end; 5 | -------------------------------------------------------------------------------- /tests/queries/pp_const/example1/c.tremor: -------------------------------------------------------------------------------- 1 | # c.tremor 2 | const MAP = { 3 | "🔧": 1, 4 | "🏫": 2, 5 | "👷": 3, 6 | }; -------------------------------------------------------------------------------- /tests/queries/pp_operator/out: -------------------------------------------------------------------------------- 1 | { "count": 1, "event": 1 } 2 | { "count": 2, "event": 2 } 3 | { "count": 3, "event": 3 } 4 | -------------------------------------------------------------------------------- /tests/query_errors/local_in_group_by/query.trickle: -------------------------------------------------------------------------------- 1 | select 2 | event 3 | from in 4 | group by set(a + b) 5 | into out; 6 | -------------------------------------------------------------------------------- /tests/script_errors/function_error_n/script.tremor: -------------------------------------------------------------------------------- 1 | use std::string; 2 | string::format(7, "snot", "badger", "cake") 3 | -------------------------------------------------------------------------------- /tests/script_errors/lexer_bad_hex/error.txt: -------------------------------------------------------------------------------- 1 | Error: 2 | 1 | let f = 0xg; 3 | | ^^^ An invalid hexadecimal -------------------------------------------------------------------------------- /tests/script_errors/lexer_bad_hex2/error.txt: -------------------------------------------------------------------------------- 1 | Error: 2 | 1 | let f = 7x0; 3 | | ^^^ An invalid hexadecimal -------------------------------------------------------------------------------- /tests/script_errors/lexer_bad_hex3/error.txt: -------------------------------------------------------------------------------- 1 | Error: 2 | 1 | let f = 0x; 3 | | ^^^ An invalid hexadecimal -------------------------------------------------------------------------------- /tests/script_errors/lexer_invalid_float_exp/error.txt: -------------------------------------------------------------------------------- 1 | Error: 2 | 1 | 12.0e 3 | | ^^^^ An invalid float literal -------------------------------------------------------------------------------- /tests/script_runtime_errors/assign_const/script.tremor: -------------------------------------------------------------------------------- 1 | const A = {"snot": "badger"}; 2 | 3 | let A.snot = event; 4 | 5 | A -------------------------------------------------------------------------------- /tests/script_runtime_errors/bad_fold_op_imut/script.tremor: -------------------------------------------------------------------------------- 1 | (for event of 2 | case (k, v) => v 3 | into [] use / end) 4 | -------------------------------------------------------------------------------- /tests/script_runtime_errors/bad_fold_type_imut/script.tremor: -------------------------------------------------------------------------------- 1 | (for event of 2 | case (k,v) => [k, v] 3 | into {} end) 4 | -------------------------------------------------------------------------------- /tests/script_runtime_errors/fold_bool_op_imut/script.tremor: -------------------------------------------------------------------------------- 1 | (for event of 2 | case (k, v) => v 3 | into true use and end) -------------------------------------------------------------------------------- /tests/script_runtime_errors/fold_bool_or_imut/script.tremor: -------------------------------------------------------------------------------- 1 | (for event of 2 | case (k, v) => v 3 | into false use or end) -------------------------------------------------------------------------------- /tests/script_runtime_errors/patch_copy_key_exists/script.tremor: -------------------------------------------------------------------------------- 1 | patch {"a": 1, "b": 2} of 2 | copy "a" => "b" 3 | end 4 | -------------------------------------------------------------------------------- /tests/script_runtime_errors/patch_move_key_exists/script.tremor: -------------------------------------------------------------------------------- 1 | patch {"a": 1, "b": 2} of 2 | move "a" => "b" 3 | end 4 | -------------------------------------------------------------------------------- /tests/scripts/array_pattern_element/script.tremor: -------------------------------------------------------------------------------- 1 | match [event] of 2 | case %[ 0 ] => true 3 | case _ => false 4 | end; -------------------------------------------------------------------------------- /tests/scripts/base64/script.tremor: -------------------------------------------------------------------------------- 1 | match event of 2 | case foo = %{test ~= base64|| } => foo 3 | case _ => "ko" 4 | end; -------------------------------------------------------------------------------- /tests/scripts/const_in_const/script.tremor: -------------------------------------------------------------------------------- 1 | const TWO = 2; 2 | const THREE = 3; 3 | const SIX = TWO * THREE; 4 | event + SIX -------------------------------------------------------------------------------- /tests/scripts/const_of_const/script.tremor: -------------------------------------------------------------------------------- 1 | const A = "snot"; 2 | const B = ( A + " badger" ); 3 | 4 | "#{B}: #{event}!" -------------------------------------------------------------------------------- /tests/scripts/const_string_interpolation/script.tremor: -------------------------------------------------------------------------------- 1 | const ONE = 1; 2 | const STRING = "one is #{ONE}"; 3 | STRING 4 | -------------------------------------------------------------------------------- /tests/scripts/empty_array_pattern/script.tremor: -------------------------------------------------------------------------------- 1 | match event of 2 | case %[] => "array" 3 | case _ => "else" 4 | end 5 | -------------------------------------------------------------------------------- /tests/scripts/fold_array_initial_op_imut/script.tremor: -------------------------------------------------------------------------------- 1 | (for event of 2 | case (k, v) => v + 1 3 | into [1] use + end) 4 | -------------------------------------------------------------------------------- /tests/scripts/multi_case/script.tremor: -------------------------------------------------------------------------------- 1 | match event of 2 | case true => let a = 1 3 | ; let b = 2 4 | end 5 | -------------------------------------------------------------------------------- /tests/scripts/multi_use/script.tremor: -------------------------------------------------------------------------------- 1 | use std::{string as s, integer}; 2 | 3 | integer::parse(s::format("{}", event)); 4 | -------------------------------------------------------------------------------- /tests/scripts/null_match/script.tremor: -------------------------------------------------------------------------------- 1 | match event of 2 | case null => "is null" 3 | case _ => "is set" 4 | end 5 | -------------------------------------------------------------------------------- /tests/scripts/record_comprehension/out: -------------------------------------------------------------------------------- 1 | [ [ "0", "zip", "other" ], [ "1", "one", "other" ], [ "2", "two", "other" ] ] 2 | -------------------------------------------------------------------------------- /tests/scripts/string_interpolation_escaped_hash/script.tremor: -------------------------------------------------------------------------------- 1 | [ 2 | "\#", 3 | ">\#", 4 | "\#<", 5 | ">\#<", 6 | ] -------------------------------------------------------------------------------- /tests/scripts/tilde_extractor/script.tremor: -------------------------------------------------------------------------------- 1 | match event of 2 | case ~ json|| => "ok" 3 | case _ => "error" 4 | end 5 | -------------------------------------------------------------------------------- /tremor-cli/tests/api/data/linked/passthrough-pipeline.trickle: -------------------------------------------------------------------------------- 1 | #!config id = "main" 2 | select event from in into out; 3 | -------------------------------------------------------------------------------- /tremor-cli/tests/bench/passthrough-two-inputs/tags.yaml: -------------------------------------------------------------------------------- 1 | [ 2 | "passthrough", 3 | "2i", 4 | "codec:json" 5 | ] -------------------------------------------------------------------------------- /tremor-cli/tests/bench/throughput-logging-tcp-json/tags.yaml: -------------------------------------------------------------------------------- 1 | [ 2 | "throughput", 3 | "codec:json", 4 | "tcp" 5 | ] -------------------------------------------------------------------------------- /tremor-cli/tests/integration/http/expected.json: -------------------------------------------------------------------------------- 1 | [{"NaN":42.0,"asdf":null},["fleek","flook"],["snot","badger"],"exit"] 2 | -------------------------------------------------------------------------------- /tremor-cli/tests/integration/http/tags.yaml: -------------------------------------------------------------------------------- 1 | [ 2 | "http", 3 | "echo", 4 | "connectors", 5 | "connector" 6 | ] 7 | -------------------------------------------------------------------------------- /tremor-cli/tests/integration/select-window-gd/in.json: -------------------------------------------------------------------------------- 1 | {"cb":"fail"} 2 | {"cb":"ack"} 3 | {"cb":"fail"} 4 | {"cb":"ack"} 5 | -------------------------------------------------------------------------------- /tremor-cli/tests/integration/tcp-tls/expected.json: -------------------------------------------------------------------------------- 1 | ["snot","badger"] 2 | ["fleek","flook"] 3 | {"":null,"NaN":42.0} 4 | -------------------------------------------------------------------------------- /tremor-cli/tests/integration/tcp/expected_client.json: -------------------------------------------------------------------------------- 1 | ["snot","badger"] 2 | ["fleek","flook"] 3 | {"":null,"NaN":42.0} 4 | -------------------------------------------------------------------------------- /tremor-cli/tests/integration/tcp/in.json: -------------------------------------------------------------------------------- 1 | ["snot","badger"] 2 | ["fleek","flook"] 3 | {"":null,"NaN":42.0} 4 | "exit" 5 | -------------------------------------------------------------------------------- /tremor-cli/tests/integration/window-timeout-metadata/tags.yaml: -------------------------------------------------------------------------------- 1 | - "window" 2 | - "signal" 3 | - "timeout" 4 | - "metadata" -------------------------------------------------------------------------------- /packaging/distribution/README.md: -------------------------------------------------------------------------------- 1 | Files here are primarily meant for distribution as part of the various packages we create. 2 | -------------------------------------------------------------------------------- /static/language/epilog/windows.md: -------------------------------------------------------------------------------- 1 | Wraps the `Windows_` internal rule for other rules to consume in their definitions 2 | 3 | -------------------------------------------------------------------------------- /static/language/prolog/complexexprimut.md: -------------------------------------------------------------------------------- 1 | The `ComplexExprImut` rule defines complex immutable expression in tremor. 2 | 3 | -------------------------------------------------------------------------------- /static/language/prolog/connect.md: -------------------------------------------------------------------------------- 1 | The `Connect` rule defines routes between connectors and pipelines running in a flow. 2 | 3 | -------------------------------------------------------------------------------- /static/language/prolog/connectfrompipeline.md: -------------------------------------------------------------------------------- 1 | The `ConnectFromPipeline` rule defines route from a pipeline instance. 2 | 3 | -------------------------------------------------------------------------------- /static/language/prolog/connecttoconnector.md: -------------------------------------------------------------------------------- 1 | The `ConnectToConnector` rule defines a route to a connector instance. 2 | 3 | -------------------------------------------------------------------------------- /static/language/prolog/definitionargs.md: -------------------------------------------------------------------------------- 1 | The `DefinitionArgs` rule defines an arguments block without an `end` block. 2 | 3 | -------------------------------------------------------------------------------- /static/language/prolog/forcaseclause.md: -------------------------------------------------------------------------------- 1 | The `ForCaseClause` defines the case clause for mutable `for` comprehensions. 2 | 3 | -------------------------------------------------------------------------------- /static/language/prolog/predicatesimut.md: -------------------------------------------------------------------------------- 1 | The `PredicatesImut` rule defines a sequence of `PredicateClauseImut` rules. 2 | 3 | -------------------------------------------------------------------------------- /static/language/prolog/recur.md: -------------------------------------------------------------------------------- 1 | The `Recur` rule defines stack-depth-limited tail-recursion in tremor functions. 2 | 3 | 4 | -------------------------------------------------------------------------------- /static/language/prolog/withendclause.md: -------------------------------------------------------------------------------- 1 | The `WithEndClause` rule defines a with clause with an `end` terminal token. 2 | 3 | -------------------------------------------------------------------------------- /tests/queries/pp_alias_operator/out: -------------------------------------------------------------------------------- 1 | { "count": 1, "event": 1 } 2 | { "count": 2, "event": 2 } 3 | { "count": 3, "event": 3 } 4 | -------------------------------------------------------------------------------- /tests/script_errors/function_already_defined/script.tremor: -------------------------------------------------------------------------------- 1 | fn a () with 2 | 1 3 | end; 4 | 5 | fn a () with 6 | 2 7 | end; -------------------------------------------------------------------------------- /tests/script_errors/invalid_utf8_3/error.txt: -------------------------------------------------------------------------------- 1 | Error: 2 | 1 | "\u0 3 | | ^^^ An invalid UTF8 escape sequence was found -------------------------------------------------------------------------------- /tests/script_runtime_errors/error_after_heredoc/script.tremor: -------------------------------------------------------------------------------- 1 | let heredoc = """ 2 | snot 3 | badger 4 | """; 5 | 6 | event.snot -------------------------------------------------------------------------------- /tests/script_runtime_errors/function_error_1/script.tremor: -------------------------------------------------------------------------------- 1 | use std::record; 2 | 3 | let a = 7; 4 | record::from_array(a) 5 | -------------------------------------------------------------------------------- /tests/script_runtime_errors/match_bad_guard_type/script.tremor: -------------------------------------------------------------------------------- 1 | match true of 2 | case true when "snot" => true 3 | end 4 | -------------------------------------------------------------------------------- /tests/script_warnings/match_imut_no_default/script.tremor: -------------------------------------------------------------------------------- 1 | merge event of match true of 2 | case true => true 3 | end end 4 | -------------------------------------------------------------------------------- /tests/scripts/empty_array_pattern/out: -------------------------------------------------------------------------------- 1 | "array" 2 | "else" 3 | "else" 4 | "else" 5 | "else" 6 | "else" 7 | "else" 8 | "array" 9 | -------------------------------------------------------------------------------- /tests/scripts/empty_record_pattern/script.tremor: -------------------------------------------------------------------------------- 1 | match event of 2 | case %{} => "record" 3 | case _ => "else" 4 | end 5 | -------------------------------------------------------------------------------- /tests/scripts/kv/script.tremor: -------------------------------------------------------------------------------- 1 | match event of 2 | case foo = %{ test ~= kv|| } => foo.test 3 | case _ => "ko" 4 | end 5 | -------------------------------------------------------------------------------- /tests/scripts/match_assign/in.xz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tremor-rs/tremor-runtime/HEAD/tests/scripts/match_assign/in.xz -------------------------------------------------------------------------------- /tests/scripts/match_assign/out.xz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tremor-rs/tremor-runtime/HEAD/tests/scripts/match_assign/out.xz -------------------------------------------------------------------------------- /tests/scripts/match_reorder1/in.xz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tremor-rs/tremor-runtime/HEAD/tests/scripts/match_reorder1/in.xz -------------------------------------------------------------------------------- /tests/scripts/path_defaulting/out: -------------------------------------------------------------------------------- 1 | "badger" 2 | { "snot": "badger", "arr": [{"beep": "boop"}, 1234]} 3 | "good" 4 | "boop" 5 | -------------------------------------------------------------------------------- /tests/scripts/record_comprehension_imut/out: -------------------------------------------------------------------------------- 1 | [ [ "0", "zip", "other" ], [ "1", "one", "other" ], [ "2", "two", "other" ] ] 2 | -------------------------------------------------------------------------------- /tests/scripts/string_interpolation_quotes/script.tremor: -------------------------------------------------------------------------------- 1 | fn bla(e) with 2 | " \"#{e}\" \"#{e}\" " 3 | end; 4 | bla(event) 5 | -------------------------------------------------------------------------------- /tremor-cli/tests/api/after.yaml: -------------------------------------------------------------------------------- 1 | { 2 | "dir": ".", 3 | "cmd": "bash", 4 | "args": [ 5 | "./after/stop.sh" 6 | ] 7 | } -------------------------------------------------------------------------------- /tremor-cli/tests/bench/throughput-logging-json/tags.yaml: -------------------------------------------------------------------------------- 1 | [ 2 | "throughput", 3 | "logging", 4 | "codec:json", 5 | ] -------------------------------------------------------------------------------- /tremor-cli/tests/integration/file-connector-streaming-compress/tags.yaml: -------------------------------------------------------------------------------- 1 | ["connector:file","postprocessor:streaming-compress"] -------------------------------------------------------------------------------- /tremor-cli/tests/integration/http-client-sink-only/in2.json: -------------------------------------------------------------------------------- 1 | true 2 | false 3 | "string" 4 | 1 5 | 1.5 6 | null 7 | {} 8 | [] 9 | -------------------------------------------------------------------------------- /tremor-cli/tests/integration/http-client-sink-only/tags.yaml: -------------------------------------------------------------------------------- 1 | - http 2 | - http_client 3 | - sink 4 | - connector 5 | - connectors -------------------------------------------------------------------------------- /tremor-cli/tests/integration/s3-consistent-cb/env.yaml: -------------------------------------------------------------------------------- 1 | AWS_ACCESS_KEY_ID: tremor 2 | AWS_SECRET_ACCESS_KEY: snot_badger 3 | -------------------------------------------------------------------------------- /tremor-cli/tests/integration/tcp-tls/in.json: -------------------------------------------------------------------------------- 1 | ["snot","badger"] 2 | ["fleek","flook"] 3 | {"":null,"NaN":42.0} 4 | "exit" 5 | -------------------------------------------------------------------------------- /tremor-cli/tests/integration/ws-tls/in.json: -------------------------------------------------------------------------------- 1 | ["snot", "badger"] 2 | ["fleek", "flook"] 3 | {"": null, "NaN": 42.0} 4 | "exit" 5 | -------------------------------------------------------------------------------- /static/language/epilog/pipeline.md: -------------------------------------------------------------------------------- 1 | 2 | An internal rule to the `DefinePipeline` rule where the pipeline logic is provided. 3 | 4 | -------------------------------------------------------------------------------- /static/language/prolog/connectfromconnector.md: -------------------------------------------------------------------------------- 1 | The `ConnectFromConnector` rule defines a route from a connector instance. 2 | 3 | -------------------------------------------------------------------------------- /static/language/prolog/embeddedscriptcontent.md: -------------------------------------------------------------------------------- 1 | The `EmbeddedScriptContent` rule defines an embedded script expression. 2 | 3 | -------------------------------------------------------------------------------- /static/language/prolog/predicates.md: -------------------------------------------------------------------------------- 1 | The `Predicates` rule defines a sequence of mutable `PredicateClause` rules in tremor. 2 | 3 | -------------------------------------------------------------------------------- /static/language/prolog/windowdefn.md: -------------------------------------------------------------------------------- 1 | The `WindowDefn` defines a temporal basis over which a stream of events is applicable. 2 | 3 | -------------------------------------------------------------------------------- /static/language/prolog/windows.md: -------------------------------------------------------------------------------- 1 | The `Windows` rule defines a sequence of window definitions that are `,` comma delimited. 2 | 3 | -------------------------------------------------------------------------------- /tests/flow_errors/connector_bad_kind/flow.troy: -------------------------------------------------------------------------------- 1 | define flow error 2 | flow 3 | define connector empty from 1 + 2 + 3; 4 | end; 5 | -------------------------------------------------------------------------------- /tests/queries/where_filter/query.trickle: -------------------------------------------------------------------------------- 1 | select 2 | event 3 | from in 4 | where 5 | event.type == "sillylog" 6 | into out; 7 | -------------------------------------------------------------------------------- /tests/script_errors/fn_bad_recur/script.tremor: -------------------------------------------------------------------------------- 1 | 2 | fn snot(a) with 3 | recur(a); 4 | a + 1 5 | end; 6 | 7 | snot(event) 8 | -------------------------------------------------------------------------------- /tests/script_errors/invalid_escape_extractor/script.tremor: -------------------------------------------------------------------------------- 1 | match event of 2 | case ~ re|\snot| => true 3 | _ => false 4 | end; -------------------------------------------------------------------------------- /tests/script_errors/invalid_utf8_1/error.txt: -------------------------------------------------------------------------------- 1 | Error: 2 | 1 | "\u000" 3 | | ^^^^^^ An invalid UTF8 escape sequence was found -------------------------------------------------------------------------------- /tests/script_errors/lexer_bad_float/error.txt: -------------------------------------------------------------------------------- 1 | Error: 2 | 1 | let f = 1.0e; 3 | | ^^^^^ An invalid float literal -------------------------------------------------------------------------------- /tests/script_errors/lexer_invalid_float/error.txt: -------------------------------------------------------------------------------- 1 | Error: 2 | 1 | 12.0j5 3 | | ^^^^ An unexpected character 'j' was found -------------------------------------------------------------------------------- /tests/script_runtime_errors/bad_fold_op_record/script.tremor: -------------------------------------------------------------------------------- 1 | for event of 2 | case (k, v) => {"#{k}": v} 3 | into {} use / end 4 | -------------------------------------------------------------------------------- /tests/script_runtime_errors/merge_assign_target_target_no_object/script.tremor: -------------------------------------------------------------------------------- 1 | let event = merge event of {"snot": "badger"} end 2 | -------------------------------------------------------------------------------- /tests/script_runtime_errors/patch_merge_on_non_object/script.tremor: -------------------------------------------------------------------------------- 1 | patch {"a": 1, "b": 2} of 2 | merge "a" => {"c": 3} 3 | end 4 | -------------------------------------------------------------------------------- /tests/script_warnings/array_perf/script.tremor: -------------------------------------------------------------------------------- 1 | use std::array; 2 | array::push([], event); 3 | array::concatenate([], [event]); 4 | -------------------------------------------------------------------------------- /tests/scripts/array_pattern/script.tremor: -------------------------------------------------------------------------------- 1 | match event of 2 | case foo = %[ 2, ~ re|4| ] => foo 3 | case _ => "ko" 4 | end 5 | -------------------------------------------------------------------------------- /tests/scripts/const_fn_tremor/script.tremor: -------------------------------------------------------------------------------- 1 | fn twofn(n) with 2 | 2 * n 3 | end; 4 | const TWO = twofn(1); 5 | 6 | event + TWO 7 | -------------------------------------------------------------------------------- /tests/scripts/glob/script.tremor: -------------------------------------------------------------------------------- 1 | match event of 2 | case foo = %{ test ~= glob|INFO*| } => foo 3 | case _ => "ko" 4 | end; 5 | -------------------------------------------------------------------------------- /tests/scripts/json/script.tremor: -------------------------------------------------------------------------------- 1 | emit match event of 2 | case foo = %{test ~= json|| } => foo["test"] 3 | case _ => "ko" 4 | end; -------------------------------------------------------------------------------- /tests/scripts/match_multiple_exprs/in: -------------------------------------------------------------------------------- 1 | {} 2 | {"snot": "badger"} 3 | {"snot": "moo"} 4 | {"something": "completely different"} 5 | -------------------------------------------------------------------------------- /tests/scripts/match_reorder1/out.xz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tremor-rs/tremor-runtime/HEAD/tests/scripts/match_reorder1/out.xz -------------------------------------------------------------------------------- /tests/scripts/nested_patterns/in: -------------------------------------------------------------------------------- 1 | {"arr": [1, "test", {"snot": "badger"}, {"snot": "badger", "rec": "awesome"}, {"rec":"here"}]} 2 | -------------------------------------------------------------------------------- /tests/scripts/tilde_extractor/in.xz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tremor-rs/tremor-runtime/HEAD/tests/scripts/tilde_extractor/in.xz -------------------------------------------------------------------------------- /tests/scripts/tilde_extractor/out.xz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tremor-rs/tremor-runtime/HEAD/tests/scripts/tilde_extractor/out.xz -------------------------------------------------------------------------------- /tremor-cli/tests/bench/throughput-logging-msgpack/tags.yaml: -------------------------------------------------------------------------------- 1 | [ 2 | "throughput", 3 | "logging", 4 | "codec:msgpack", 5 | ] -------------------------------------------------------------------------------- /tremor-cli/tests/integration/cb-pipeline-to-pipeline/in.json: -------------------------------------------------------------------------------- 1 | {"cb":"fail"} 2 | {"cb":"ack"} 3 | {"cb":"fail"} 4 | {"cb":"ack"} 5 | -------------------------------------------------------------------------------- /tremor-cli/tests/integration/file-connector-append/before/prepare_input_file.sh: -------------------------------------------------------------------------------- 1 | rm ../out.log 2 | echo '{"first":true}' > ../out.log -------------------------------------------------------------------------------- /tremor-cli/tests/integration/http/in.json: -------------------------------------------------------------------------------- 1 | ["snot", "badger"] 2 | ["fleek", "flook"] 3 | {"asdf": null, "NaN": 42.0} 4 | "exit" 5 | -------------------------------------------------------------------------------- /tremor-cli/tests/integration/tcp-server-source-only/tags.yaml: -------------------------------------------------------------------------------- 1 | - tcp 2 | - tcp_server 3 | - source 4 | - connector 5 | - connectors -------------------------------------------------------------------------------- /tremor-cli/tests/integration/tcp/expected_server.json: -------------------------------------------------------------------------------- 1 | ["snot","badger"] 2 | ["fleek","flook"] 3 | {"":null,"NaN":42.0} 4 | "exit" 5 | -------------------------------------------------------------------------------- /.gitpod.Dockerfile: -------------------------------------------------------------------------------- 1 | FROM gitpod/workspace-full 2 | 3 | USER gitpod 4 | 5 | RUN bash -lc "rustup default stable" 6 | 7 | USER root 8 | -------------------------------------------------------------------------------- /static/language/epilog/connectorkind.md: -------------------------------------------------------------------------------- 1 | 2 | The name of a builtin connector implemented in rust provided by the tremor runtime. 3 | 4 | -------------------------------------------------------------------------------- /static/language/prolog/blockimut.md: -------------------------------------------------------------------------------- 1 | The `BlockImut` rule defines a comma delimited sequence of complex immutable expressions. 2 | 3 | --------------------------------------------------------------------------------