0
I am doing a job in Datastage and when I enter the query in ODBC I need the Current timestamp, and it always passes me to null when writing in the table.
I’ve used CURRENT_TIMESTAMP
, (CURRENT_TIMESTAMP)
, '#CURRENT_TIMESTAMP#'
, etc...
Follow the query.
(INSERT INTO dev_dw.compress_log VALUES ('#ORIGIN_TABLE#' , '#DESTINATION_TABLE#', '#CONDITION#' , CURRENT_TIMESTAMP )).
Someone can help me?
I created a table in parquet in Hive, when running the job I cannot insert the current_timestamp in the table I created.
INSERT INTO dev_dw.compress_log VALUES ('#ORIGIN_TABLE#' ,
'#DESTINATION_TABLE#', '#CONDITION#' , CURRENT_TIMESTAMP )
You’re a little confused man, you can explain a little better?
– KhaosDoctor
Which database, SQL Server?
– Ricardo Pontual
I created a table in parquet in Hive, when running the job I cannot insert the current_timestamp in the table I created.
– Rafael Ribeiro