Closed weaverba137 closed 4 years ago
While attempting to load the sdss_dr14_new.sdssebossfirefly table with
sdss_dr14_new.sdssebossfirefly
fits2db --sql=postgres --truncate -t sdss_dr14_new.sdssebossfirefly sdss_dr14_new.sdssebossfirefly.fits | psql tapdb datalab
psql complained of unexpected column names. It turns out the string double precision was being inserted into the COPY command at odd places:
psql
double precision
COPY
COPY sdss_dr14_new.sdssebossfirefly (specobjid,bestobjid,plug_ra,plug_dec,sn_median_all, chabrier_miles_age_lightw,chabrier_miles_age_lightw_up,chabrier_miles_age_lightw_low, chabrier_miles_metallicity_lightdouble precision,chabrier_miles_metallicity_lightdouble precision, chabrier_miles_metallicity_lightdouble precision,chabrier_miles_stellar_mass, chabrier_miles_stellar_mass_up,chabrier_miles_stellar_mass_low,chabrier_miles_spm_ebv, chabrier_miles_ncomponentsssp,chabrier_miles_c ...
Maybe this has something to do with the long column names in this particular file. Setting the --noheader option allowed the load to proceed.
--noheader
Closing this since it no longer appears to be a problem with that file.
While attempting to load the
sdss_dr14_new.sdssebossfirefly
table withpsql
complained of unexpected column names. It turns out the stringdouble precision
was being inserted into theCOPY
command at odd places:Maybe this has something to do with the long column names in this particular file. Setting the
--noheader
option allowed the load to proceed.