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

refactor: catalog improved file and function names #544

Merged
merged 10 commits into from
Dec 29, 2022
Merged

Conversation

gaurav274
Copy link
Member

No description provided.

@gaurav274 gaurav274 changed the title refactor: catalog improved file and function names [WIP] refactor: catalog improved file and function names Dec 26, 2022
@gaurav274 gaurav274 changed the title [WIP] refactor: catalog improved file and function names refactor: catalog improved file and function names Dec 27, 2022
Copy link
Member

@jarulraj jarulraj left a comment

Choose a reason for hiding this comment

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

We should add a text document to list the Catalog objects with their purpose.

Any reason for this refactoring?

@gaurav274
Copy link
Member Author

gaurav274 commented Dec 28, 2022

The original names were confusing. We were using dataset/metadata/table interchangeably.
Yes, I'm working on another refactor to remove the dependency of sqlalchemy outside the catalog. I will write a readme with it.

@@ -20,16 +20,16 @@
from eva.catalog.models.base_model import BaseModel


class DataFrameMetadata(BaseModel):
__tablename__ = "df_metadata"
class TableCatalog(BaseModel):
Copy link
Member

Choose a reason for hiding this comment

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

Just a curious comment about model in general. Why do we add a catalog suffix for all models?

To me, catalog includes everything (udf, index, etc). Would this naming give a wrong impression that we maintain different catalogs for different models? (Again, just curious, don’t need a fix).

Copy link
Member Author

Choose a reason for hiding this comment

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

I referred Postgres. They also call each model as different catalog. https://www.postgresql.org/docs/current/catalog-pg-class.html.
What do you think? Maybe I'm wrong.

Copy link
Member

Choose a reason for hiding this comment

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

I see. It seems like they use something like pg_{...} as their naming convention? I didn't really see they use catalog as suffix.

eva/catalog/catalog_manager.py Outdated Show resolved Hide resolved
eva/catalog/catalog_manager.py Outdated Show resolved Hide resolved
eva/catalog/models/column_catalog.py Show resolved Hide resolved
eva/catalog/catalog_manager.py Show resolved Hide resolved
@gaurav274 gaurav274 merged commit 97dfa95 into master Dec 29, 2022
@gaurav274 gaurav274 deleted the catalog_refactor branch December 29, 2022 03:37
@jarulraj jarulraj mentioned this pull request Jan 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants