I’ve been experimenting with directories of Parquet files that are formatted to act as one table.
Do we have a way in SQL to dig out the original object name from which a particular row originated? A scalar SQL function of some kind?
Suppose there were a scalar function named OBJECTNAME() that takes no arguments, which could be used in the following fashion. That’s the kind of thing I am hoping for.
SELECT OBJECTNAME(), A.* FROM MYTABLE A
and in this way obtain some sort of mapping back to the original Parquet file.