heavyai / rbc

Remote Backend Compiler
https://rbc.readthedocs.io
BSD 3-Clause "New" or "Revised" License
29 stars 10 forks source link

Cannot use `Column<TextEncodingNone>` with UDTF #488

Closed tupui closed 1 year ago

tupui commented 2 years ago

This is failing

@heavydb("UDTF(TableFunctionManager, Column<double>, OutputColumn<TextEncodingNone>)")
def classify_slope_udtf(mgr, slope, classif):

    size = len(slope)
    mgr.set_output_row_size(size)

    for i in range(size):
        if slope[i] <= 5.:
            classif[i] = TextEncodingNone("low")
        elif 5. < slope[i] < 15.:
            classif[i] = TextEncodingNone("med")
        else:
            classif[i] = TextEncodingNone("high")

    return size
guilhermeleobas commented 2 years ago

requires https://github.com/heavyai/heavydb-internal/pull/6571

guilhermeleobas commented 1 year ago

Fixed in #553