Hello. Apologies if this question already exists, I searched thoroughly!
Am new to TigerGraph, and have several CSV files, with various columns, that I’m creating a loading job for. The following works just fine in the GSQL console:
BEGIN
CREATE LOADING JOB load_data FOR GRAPH MyGraph {
DEFINE FILENAME my_file = “ANY:/home/…”;
LOAD my_file TO VERTEX theVertex VALUES("Val1", “Val2”, $“Val3”) USING HEADER = “TRUE”;
}
END
My question is: if the vertex has e.g. 5 attributes, this JOB will fail as there aren’t enough columns in the CSV file to load data in to all of the vertex’s attributes. Is there a way to specify which columns from the CSV file to load? The reason for doing it this way is that the vertex actually needs data from several CSV files, with different columns, to be loaded. Thanks in advance for any suggestions!
I did look here Loading file with column names specified instead of positional parameters - GSQL / Loading - TigerGraph but couldn’t get the example to work in my case.