I have inherited a set of Python code, and I think I know the answer to this, but wish to be sure.
It looks like both #s and --s are used interchangeably throughout the code to signify comments but any searches I am doing do not yield information about using the --.
I used to do the --s within Teradata a long time ago. Am I missing something?
Adding in some additional information too: I am running the code within Spyder (Python3.6). Perhaps that will shed more light on what is going on.
Below is an example of the -- seeming to work:
qry = """
select s2019.sk2019,
s2018.sk2018
from (select distinct h1.key sk2019,
e.Territory Territory2019 from cdw.fact_header
left join cdw.dim_event e on h1.event = e.event
where e.sy in (2019)
and e.program_name = 'xyz'
and a.Country = 'USA'
-- and h1.code = 'DC'
and h1.key > 0