Hi Rajesh,
The format that Optim uses for Date colum is driven by the date format in your source database. Either you can modify the date format in your source DB or you can try following manipulation via Optim to reformat the date/timestamp column. I have not implemented this concept before, so it may or may not work :)
Suppose you have a table "A" with 2 columns
- Some_char defined as VARCHAR/STRING
- Some_date defined as DateTimestamp
Step1: create a view "A_view"
- Some_char defined as VARCHAR/STRING
- Some_date defined as VARCHAR/STRING
Step2: In your table map for convert, use "A_view" as destination table
Step3: Create a column map procedure to perform dummy aging and change date format. Apply the procedure on "Some_char" column and inside read/write to "Some_date" column
pro=age, mtd=rep, month=-12, year=1, srcdf="%MM/%DD/%YYYY %HH:%MI:%SS:%FFFFFF",
dstdf="%YYYY-%MM-%DD %HH:%MI:%SS", flddef1=(name="Some_char", dt=DATETIME_WSZ)
I believe %YYYY-%MM-%DD %HH:%MI:%SS format will work for inserts in BigQuery.
------------------------------
Thanks,
Ankur Agrawal
------------------------------