[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: TextIO setting file dynamically issue


On Mon, Nov 26, 2018 at 5:33 PM Reuven Lax <relax@xxxxxxxxxx> wrote:
Do you need it to change based on the timestamps of the records being processed, or based on actual current time?

On Mon, Nov 26, 2018 at 5:30 PM Matthew Schneid <matthew.t.schneid@xxxxxxxxx> wrote:



I have an interesting issue that I can’t seem to find a reliable resolution too.


I have a standard TextIO output that looks like the following:


TextIO.write().to("gs://<FOLDERPATH>+ new DateTime().toString("HH-mm-ss") + "/Test-")


The above works, and writes to GSC, as I expect it too.


However, it retains the instantiated datetime value, and what I need to happen is for it to dynamically change with the current time.


Is this possible?


Thanks for any and all help that can be provided.