Skip to content

Flink: Use Namespace in FlinkCatalog.#2392

Merged
openinx merged 2 commits intoapache:masterfrom
openinx:flink-catalog-use-namespace
Mar 31, 2021
Merged

Flink: Use Namespace in FlinkCatalog.#2392
openinx merged 2 commits intoapache:masterfrom
openinx:flink-catalog-use-namespace

Conversation

@openinx
Copy link
Member

@openinx openinx commented Mar 29, 2021

This address the comment in FlinkCatalog

@github-actions github-actions bot added the flink label Mar 29, 2021
return Namespace.of(namespace);
List<String> namespaces = Lists.newArrayListWithExpectedSize(baseNamespace.levels().length + 1);
Collections.addAll(namespaces, baseNamespace.levels());
Collections.addAll(namespaces, database);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you need to change the logic here to use a List? What about changing baseNamespace references to baseNamespace.levels()? That would be fewer changes.

Namespace baseNamespace = Namespace.empty();
if (properties.containsKey(BASE_NAMESPACE)) {
baseNamespace = Namespace.of(properties.get(BASE_NAMESPACE).split("\\."));
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why move this below cacheEnabled? That seems like it would cause unnecessary git conflicts.

Copy link
Contributor

@rdblue rdblue left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall this looks correct, but I had a couple of minor comments. Please merge once you have addressed those. Feel free to leave them as is if you feel strongly about the new implementation.

@openinx openinx merged commit 0564fbf into apache:master Mar 31, 2021
@openinx
Copy link
Member Author

openinx commented Mar 31, 2021

Got this merged, thanks @rdblue for reviewing.

coolderli pushed a commit to coolderli/iceberg that referenced this pull request Apr 26, 2021
stevenzwu pushed a commit to stevenzwu/iceberg that referenced this pull request Jul 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants