When I run a sql query from HANA in R pulling all columns, the data returns correctly.
sql <- "SELECT TOP 10 *
FROM \"ccf-edw.self-service.DOIP::R_CA_B_DemandPlan\"(
'PLACEHOLDER' = ('$$IP_ExtractionWeekFrom$$', '201943'),
'PLACEHOLDER' = ('$$IP_ExtractionWeekTo$$', '201943')) "
SpringVisitAll <- dbGetQuery(jdbcConnection, sql)
This gives me columns with actual data.
However if I try and call only a few columns, the data is filled with just the column names
sql <- "SELECT TOP 10 'SalesOffice', 'CalendarMonth'
FROM \"ccf-edw.self-service.DOIP::R_CA_B_DemandPlan\"(
'PLACEHOLDER' = ('$$IP_ExtractionWeekFrom$$', '201943'),
'PLACEHOLDER' = ('$$IP_ExtractionWeekTo$$', '201943')) "
SpringVisitAll <- dbGetQuery(jdbcConnection, sql)
Gives two columns where the contents of each reads SalesOffice and CalendarMonth all the way down.
What's going on here?