Noopur_Nigam
Databricks Employee
Databricks Employee

Hi @Adalberto Garcia Espinosa​ Do you need khe column to be double? If not, below query is working:

%sql CREATE OR REPLACE TABLE Productos(Khe bigint NOT NULL,Fctor_HL_Estiba bigint GENERATED ALWAYS AS (cast(10000 as bigint) div Khe)) seems to be working.

View solution in original post