Translation to sql server #1884
-
Hi, I want to use the transpile function to translate postgres to sql server. I am using write="tsql", but still get errors. For example, it translates "date_part('year', start_date)" to "EXTRACT(year FROM start_date)". But what I need is "YEAR(start_date)". How can I define my own "translation" of this in a custom dialect? Kind regards, Eric |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Hey! Is
You can override almost everything in SQLGlot, including the |
Beta Was this translation helpful? Give feedback.
-
Fixed in 83db4c0 |
Beta Was this translation helpful? Give feedback.
Fixed in 83db4c0