Skip to content

The location of a spark table does not take effect when creating a spark table #158

@yuqi1129

Description

@yuqi1129

When I try to create a Lance table via the following code

spark = SparkSession.builder \
    .appName("gcs_fielset_test") \
    .config("spark.sql.catalog.lance", "org.lance.spark.LanceNamespaceSparkCatalog") \
    .config("spark.sql.catalog.lance.impl", "dir") \
    .config("spark.executor.memory", "3g") \
    .config("spark.sql.catalog.lance.parent", "lance_catalog") \
    .config("spark.sql.defaultCatalog", "lance") \
    .getOrCreate()  

results = spark.sql("""
create table schema.t23(id int, score float) USING lance LOCATION '/tmp/schema/t23.lance/' TBLPROPERTIES  ('format' = 'lance')
""")
results.show()

The location /tmp/schema/t23.lance/ can't take effect.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions