@Test public void testFilterAPI() throws Exception { TestMatchFunctionFactory.clear(); final String expected = "a\tb\tk\n" + "80.43224099968394\tCPSW\t1970-01-01T00:00:00.000000Z\n" + "93.4460485739401\tPEHN\t1970-01-02T03:46:40.000000Z\n" + "88.99286912289664\tSXUX\t1970-01-03T07:33:20.000000Z\n" + "42.17768841969397\tGPGW\t1970-01-04T11:20:00.000000Z\n" + "66.93837147631712\tDEYY\t1970-01-05T15:06:40.000000Z\n" + "0.35983672154330515\tHFOW\t1970-01-06T18:53:20.000000Z\n" + "21.583224269349387\tYSBE\t1970-01-07T22:40:00.000000Z\n" + "12.503042190293423\tSHRU\t1970-01-09T02:26:40.000000Z\n" + "67.00476391801053\tQULO\t1970-01-10T06:13:20.000000Z\n" + "81.0161274171258\tTJRS\t1970-01-11T10:00:00.000000Z\n" + "24.59345277606021\tRFBV\t1970-01-12T13:46:40.000000Z\n" + "49.00510449885239\tOOZZ\t1970-01-13T17:33:20.000000Z\n" + "18.769708157331323\tMYIC\t1970-01-14T21:20:00.000000Z\n" + "22.82233596526786\tUICW\t1970-01-16T01:06:40.000000Z\n" + "88.2822836669774\t\t1970-01-17T04:53:20.000000Z\n" + "45.659895188239794\tDOTS\t1970-01-18T08:40:00.000000Z\n" + "97.03060808244088\tCTGQ\t1970-01-19T12:26:40.000000Z\n" + "12.02416087573498\tWCKY\t1970-01-20T16:13:20.000000Z\n" + "63.59144993891355\tDSWU\t1970-01-21T20:00:00.000000Z\n" + "50.65228336156442\tLNVT\t1970-01-22T23:46:40.000000Z\n"; assertQuery(expected, "select * from x where test_match()", "create table x as " + "(" + "select" + " rnd_double(0)*100 a," + " rnd_str(4,4,1) b," + " timestamp_sequence(0, 100000000000) k" + " from" + " long_sequence(20)" + ") timestamp(k) partition by DAY", "k"); Assert.assertTrue(TestMatchFunctionFactory.assertAPI()); }
@Override public void clear() { whereClauseParser.clear(); }
SqlCodeGenerator implements Mutable { @Override public void clear() { whereClauseParser.clear(); } }
SqlCodeGenerator implements Mutable { @Override public void clear() { whereClauseParser.clear(); } SqlCodeGenerator(
            CairoEngine engine,
            CairoConfiguration configuration,
            FunctionParser functionParser
    ); }
SqlCodeGenerator implements Mutable { @Override public void clear() { whereClauseParser.clear(); } SqlCodeGenerator(
            CairoEngine engine,
            CairoConfiguration configuration,
            FunctionParser functionParser
    ); @Override void clear(); @NotNull Function compileFilter(ExpressionNode expr, RecordMetadata metadata, SqlExecutionContext executionContext); }
SqlCodeGenerator implements Mutable { @Override public void clear() { whereClauseParser.clear(); } SqlCodeGenerator(
            CairoEngine engine,
            CairoConfiguration configuration,
            FunctionParser functionParser
    ); @Override void clear(); @NotNull Function compileFilter(ExpressionNode expr, RecordMetadata metadata, SqlExecutionContext executionContext); static final int GKK_VANILLA_INT; static final int GKK_HOUR_INT; }