Sql connector api not returning fields

When initializing a sql call the field types are not returning
please help