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

Initial commit to push semantic model generator #1

Merged

Conversation

sfc-gh-jhilgart
Copy link
Collaborator

The initial commit to move over the relevant files to the semantic-model-generator repo.

# semantic-model-generator
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@sfc-gh-pverhoeven Please review

Copy link
Collaborator

@sfc-gh-pverhoeven sfc-gh-pverhoeven left a comment

Choose a reason for hiding this comment

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

Reviewed the README and left some comments. PTAL and let me know if you have any questions.

README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Show resolved Hide resolved
populates them with sample values, and sets placeholders for descriptions and filters.
"""

# For each columns, decide if it is a TimeDimension, Measure, or Dimension column.
Copy link
Collaborator

Choose a reason for hiding this comment

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

decide -> assume?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I think this is ok. wdyt

Copy link
Collaborator

@sfc-gh-nsehrawat sfc-gh-nsehrawat left a comment

Choose a reason for hiding this comment

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

Looking great!

semantic_model_generator/main.py Show resolved Hide resolved
semantic_model_generator/main.py Outdated Show resolved Hide resolved
semantic_model_generator/main.py Outdated Show resolved Hide resolved
semantic_model_generator/main.py Outdated Show resolved Hide resolved
semantic_model_generator/main.py Show resolved Hide resolved
semantic_model_generator/protos/semantic_model.proto Outdated Show resolved Hide resolved
Copy link
Collaborator

@sfc-gh-nsehrawat sfc-gh-nsehrawat left a comment

Choose a reason for hiding this comment

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

Looks great! Thanks for putting this together so quickly!

README.md Outdated Show resolved Hide resolved
README.md Outdated


```bash
python -m semantic_model_generator.main \
--fqn_tables "['<your-database-name-1>.<your-schema-name-1>.<your-table-name-1>','<your-database-name-2>.<your-schema-name-2>.<your-table-name-2>']" \
--fqn_tables "['<your-database-name-1>.<your-schema-name-1>.<your-physical-table-name-1>','<your-database-name-2>.<your-schema-name-2>.<your-physical-table-name-2>']" \
--semantic_model_name "<a-meaningful-semantic-name-for-your-team>" \
Copy link
Collaborator

Choose a reason for hiding this comment

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

WDYT about s/a-meaningful-semantic-name-for-your-team/a-meaningful-semantic-model-name?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

updated!

README.md Outdated Show resolved Hide resolved
README.md Outdated

In addition, consider adding the following elements to your semantic model:

1. Logical columns for a given table.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should we say, "Logical columns that are expressions over physical columns"? Since all columns in a semantic model are logical columns.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

good point - done

README.md Outdated Show resolved Hide resolved
semantic_model_generator/main.py Outdated Show resolved Hide resolved
@sfc-gh-jhilgart sfc-gh-jhilgart merged commit dfaf0bd into main Apr 9, 2024
3 checks passed
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.

4 participants