Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,21 @@

import static org.apache.paimon.options.OptionsUtils.PAIMON_PREFIX;
import static org.apache.paimon.options.OptionsUtils.convertToPropertiesPrefixKey;
import static org.apache.paimon.utils.HadoopUtils.HADOOP_LOAD_DEFAULT_CONFIG;

/** Utils for create {@link FileStoreTable} and {@link Predicate}. */
public class HiveUtils {

public static FileStoreTable createFileStoreTable(JobConf jobConf) {
Options options = extractCatalogConfig(jobConf);
options.set(CoreOptions.PATH, LocationKeyExtractor.getPaimonLocation(jobConf));
CatalogContext catalogContext = CatalogContext.create(options, jobConf);

CatalogContext catalogContext;
if (options.get(HADOOP_LOAD_DEFAULT_CONFIG)) {
catalogContext = CatalogContext.create(options, jobConf);
} else {
catalogContext = CatalogContext.create(options);
}
return FileStoreTableFactory.create(catalogContext);
}

Expand Down