Exemplo n.º 1
0
def base_scan_partition(base_scan_schema, request):
    if request.param == "none":
        spec = PartitionSpec.unpartitioned()
    else:
        spec = PartitionSpecBuilder(base_scan_schema).add(
            1, 1000, "id", "identity").build()
    return spec
Exemplo n.º 2
0
def ts_table(base_scan_schema, request):
    with tempfile.TemporaryDirectory() as td:
        if request.param == "none":
            spec = PartitionSpec.unpartitioned()
        else:
            spec = PartitionSpecBuilder(base_scan_schema).add(
                1, 1000, "id", "identity").build()
        return TestTables.create(td, "test-" + request.param, base_scan_schema,
                                 spec)
Exemplo n.º 3
0
def ts_table(base_scan_schema):
    with tempfile.TemporaryDirectory() as td:
        spec = PartitionSpec.unpartitioned()
        return TestTables.create(td, "test", base_scan_schema, spec)
Exemplo n.º 4
0
def expected():
    return TableMetadata.new_table_metadata(None, SCHEMA,
                                            PartitionSpec.unpartitioned(),
                                            "file://tmp/db/table")