Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Normalization with empty catalog #4020

Merged
merged 3 commits into from
Jun 10, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,6 @@ def process(self, catalog_file: str, json_column_name: str, default_schema: str)
tables_registry=tables_registry,
)
for stream_processor in stream_processors:
# Check properties
if not stream_processor.properties:
raise EOFError("Invalid Catalog: Unexpected empty properties in catalog")
stream_processor.collect_table_names()
for conflict in tables_registry.resolve_names():
print(
Expand Down Expand Up @@ -143,10 +140,6 @@ def build_stream_processor(

from_table = "source('{}', '{}')".format(schema_name, raw_table_name)

# Check properties
if not properties:
raise EOFError("Invalid Catalog: Unexpected empty properties in catalog")

stream_processor = StreamProcessor.create(
stream_name=stream_name,
destination_type=destination_type,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ def process(self) -> List["StreamProcessor"]:
"""
# Check properties
if not self.properties:
print(f" Ignoring substream '{self.stream_name}' from {self.current_json_path()} because properties list is empty")
print(f" Ignoring stream '{self.stream_name}' from {self.current_json_path()} because properties list is empty")
return []

column_names = self.extract_column_names()
Expand Down