Aliases Purpose

Hi Everyone,

I don’t understand aliases and how to use them for my project. Can someone explain the usecase? What is the point of them?


1 Like

Once you create a Collection in Rockset, you can’t mutate that collection at all (Example: Adding more Field Mappings). Therefore, if you need to mutate the collection, you would have to change any and all queries that referenced the original collection in order to leverage the new one. An alias is like a pointer, which allows you to reference the alias in your FROM and JOIN clause in your queries and query lambdas, regardless of you changing the collection names that the Alias points to

1 Like