Generally speaking, it's not a huge problem when you use a reserved word in a column name. You add backticks or whatever. And we don't write the sql manually anyway.
That said, plus one for deadline_time. Unless there's some other modifier better than "deadline_". Don't love the "_at" naming. On Mon, May 26, 2025 at 7:47 PM Kalyan Reddy <kaly...@apache.org> wrote: > Thanks Jens. In light of this, I'm proposing to rename it to > "deadline_at" . I've updated the PR as well. But "deadline_time" also > sounds good. We can go with that as well. I can update PR with what we > agree here. > > On 2025/05/27 01:47:57 Wei Lee wrote: > > Not sure whether "deadline.deadline_time" is an ok idea 🤔 I also worry > about what Jens said. > > > > Best, > > Wei > > > > > On May 27, 2025, at 4:26 AM, Jens Scheffler <j_scheff...@gmx.de.INVALID> > wrote: > > > > > > Hi Denis, > > > > > > from point of content of the name matching to the meaning I agree - > but I have doubts because the column name conflicts with the SQL type that > has the same same. As we use ORM this is mostly fine but other logic > running SQL on the DB might get into conflict if column name "time" is not > quoted. I see a set of pitfalls with the specific name therefore. > > > > > > See: https://www.postgresql.org/docs/current/datatype-datetime.html > > > > > > In this light I'd propose to keep it like the existing name (as > timestamp has the same problem which just came into my mind as alternative) > > > > > > Jens > > > > > > On 26.05.25 18:09, Ferruzzi, Dennis wrote: > > >> rawwar is working on some front-end stuff for the Deadlines feature > and has a suggestion to rename the database field which holds the > calculated timestamp from deadline.deadline to deadline.time. This seems > reasonable to me and slightly less confusing, but I wanted to throw it out > there for lazy consensus, or you can approve > https://github.com/apache/airflow/pull/51026 for less-lazy agreement. > > >> > > >> Currently the table `deadline` has the following columns: > > >> > > >> dag_id > > >> dagrun_id > > >> deadline: calculated timestamp > > >> callback > > >> callback_kwargs > > >> > > >> > > >> - ferruzzi > > >> > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: dev-unsubscr...@airflow.apache.org > > > For additional commands, e-mail: dev-h...@airflow.apache.org > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: dev-unsubscr...@airflow.apache.org > > For additional commands, e-mail: dev-h...@airflow.apache.org > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@airflow.apache.org > For additional commands, e-mail: dev-h...@airflow.apache.org > >