I'm writing a Python script that creates a YAML file according to DataFrame and I came across this:
test:
query: |
create or replace view emp as
select e.id as emp_id
from employees as e
vs
test:
query: "create or replace view emp\nas\nselect e.id\
\ as emp_id\n FROM employees\n
as e\
\n;"
Are they technically the same or am I missing something? If they are not the same, how do I make the second version like the first that uses a vertical bar.