Skip to content

IcebergSource cannot load data from hiveTable #121

Description

@manishmalhotrawork

While testing HiveTable read using Iceberg DataSource API, looks like, its not possible.

read like this:
sparkSession.read().format("iceberg").load("db.tbl")

as the findTable(...) method in IcebergSource uses HadoopTables:

protected Table findTable(DataSourceOptions options, Configuration conf) {
Optional<String> location = options.get("path");
Preconditions.checkArgument(location.isPresent(),
"Cannot open table without a location: path is not set");
HadoopTables tables = new HadoopTables(conf);
return tables.load(location.get());
}

May be Im missing something and didnt understand the flow.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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