Congrats on tackling your first import user-defined function! No, you don’t have an option as-to how you access the data source. Xcalar handles all file input/output, and provides you the data source content via the stream.
We find that the full filepath to the data source has valuable context that some customers need to add to their data source. For example, it might contain the name of a server, file name, date, or timestamp not otherwise in the data.
It sounds like your pathname doesn’t contain anything anything you need to add to your dataset. In that circumstance, make sure that your UDF accepts both parameters, but like the example in the online help (at https://your-cluster-login-domain/assets/help/user/Content/D_Reference/H1_UdfExamples.htm?Highlight=udf%20when%20importing), you don’t have to do anything special with that information.