static TupleSchema* createTupleScmema() {
    std::vector<ValueType> all_types;
    all_types.push_back(VALUE_TYPE_BIGINT);
    std::vector<bool> column_allow_null(1, true);
    std::vector<int32_t> all_inline_lengths;
    all_inline_lengths.push_back(NValue::
                                 getTupleStorageSize(VALUE_TYPE_BIGINT));
    return TupleSchema::createTupleSchemaForTest(all_types,
                                       all_inline_lengths,
                                       column_allow_null);
}
    TupleSchema* createTupleSchema(int columns) {
        std::vector<ValueType> all_types;
        std::vector<bool> column_allow_null(columns, true);
        std::vector<int32_t> all_inline_lengths;

        for (int i = 0 ; i < columns; ++i) {
            all_types.push_back(VALUE_TYPE_BIGINT);
            all_inline_lengths.push_back(NValue::
                                 getTupleStorageSize(VALUE_TYPE_BIGINT));
        }
        return TupleSchema::createTupleSchemaForTest(all_types,
                                       all_inline_lengths,
                                       column_allow_null);
    }
static TempTable* createTempTable() {

    const std::string tableName = "a_table";

    std::vector<ValueType> all_types;
    all_types.push_back(VALUE_TYPE_BIGINT);
    std::vector<bool> column_allow_null(1, true);
    std::vector<int32_t> all_inline_lengths;
    all_inline_lengths.push_back(NValue::
                                 getTupleStorageSize(VALUE_TYPE_BIGINT));
    TupleSchema*  schema = createTupleScmema();

    std::vector<std::string> names(1);
    return TableFactory::getTempTable(DATABASE_ID,
                                                 tableName,
                                                 schema,
                                                 names,
                                                 NULL);
}