code: def create_view(self, name, expr, database=None):
          
          ast = self._build_ast(expr, MapDDialect.make_context())
          select = ast.queries[0]
          statement = ddl.CreateView(name, select, database=database)
          self._execute(statement)
docs: Create an MapD view from a table expression
  
          Parameters
          ----------
          name : string
          expr : ibis TableExpr
          database : string, default None