fix(shadow): ignore map rows without site id
This commit is contained in:
@@ -199,7 +199,9 @@ public final class SqlServerShadowFactReader {
|
||||
+ "FROM shadow_ro.v_device_srgv ORDER BY device_id, guid";
|
||||
static final String MAP_SQL =
|
||||
"SELECT TOP (?) guid, site_id, x, y, z, value "
|
||||
+ "FROM shadow_ro.v_wcs_srgv_map ORDER BY site_id, guid";
|
||||
+ "FROM shadow_ro.v_wcs_srgv_map "
|
||||
+ "WHERE NULLIF(LTRIM(RTRIM(CONVERT(nvarchar(256), site_id))), N'') "
|
||||
+ "IS NOT NULL ORDER BY site_id, guid";
|
||||
|
||||
private final JdbcTemplate jdbc;
|
||||
private final Clock clock;
|
||||
|
||||
Reference in New Issue
Block a user