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

Dataset Declaration Aliases #1765

Open
Tushensu opened this issue Jun 26, 2024 · 0 comments
Open

Dataset Declaration Aliases #1765

Tushensu opened this issue Jun 26, 2024 · 0 comments

Comments

@Tushensu
Copy link

Tushensu commented Jun 26, 2024

In Dataform we currently declare a dataset using this :


config {
    type: "declaration",
    database: "database",
    schema: "schema",
    name : "long_table_name",
    description : "Description"
}

This however still means that in the sqlx files in order to reference this table you need to use the actual real name however it would be useful if we could add another property e.g. alias for which you can give the table a desired alias and then you can reuse that alias throughout the project to reference it (see below).

config {
    type: "declaration",
    database: "database",
    schema: "schema",
    name : "long_table_name",
    alias: "short_table_name",
    description : "Description"
}

I am not sure if there is a workaround for this in the mean time but I can't seem to find anything in the documentation.

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

No branches or pull requests

1 participant