Good evening,
I think I’ve fixed the issue.
After activating the debug log level I’ve noted that on some PDS when doing simple select, the foreman-planning task were launching a bunch of these:
2021-01-31 12:02:24,729 [1fe963af-41a1-b5eb-fb14-fde42afb8400/0:foreman-planning] DEBUG o.apache.calcite.plan.RelOptPlanner
on all the VDS that are using the tables listed in this series of messages:
2021-01-31 12:02:24,144 [1fe963af-41a1-b5eb-fb14-fde42afb8400/0:foreman-planning] DEBUG c.d.e.p.sql.handlers.PrelTransformer - HEP_BOTTOM_UP:Pre-Logical Filter Pushdown (0ms):
2021-01-31 12:02:24,710 [1fe963af-41a1-b5eb-fb14-fde42afb8400/0:foreman-planning] DEBUG c.d.e.p.a.s.DremioSubstitutionProvider - Eliminate extra starflake tables
2021-01-31 12:02:24,710 [1fe963af-41a1-b5eb-fb14-fde42afb8400/0:foreman-planning] DEBUG c.d.e.p.a.s.SnowflakeUtilities - Duplicate table found: [PRH3, S9704_GL_00, CONTACT]
2021-01-31 12:02:24,710 [1fe963af-41a1-b5eb-fb14-fde42afb8400/0:foreman-planning] DEBUG c.d.e.p.a.s.SnowflakeUtilities - Duplicate table found: [PRH3, S9704_GL_00, CONTACT]
2021-01-31 12:02:24,710 [1fe963af-41a1-b5eb-fb14-fde42afb8400/0:foreman-planning] DEBUG c.d.e.p.a.s.SnowflakeUtilities - Duplicate table found: [PRH3, S9704_GL_00, CONTACT]
2021-01-31 12:02:24,710 [1fe963af-41a1-b5eb-fb14-fde42afb8400/0:foreman-planning] DEBUG c.d.e.p.a.s.SnowflakeUtilities - Duplicate table found: [PRH3, S9704_GL_00, ENSEMBLE]
2021-01-31 12:02:24,711 [1fe963af-41a1-b5eb-fb14-fde42afb8400/0:foreman-planning] DEBUG c.d.e.p.a.s.SnowflakeUtilities - Duplicate table found: [PRH3, S9704_GL_00, AGENCE]
2021-01-31 12:02:24,711 [1fe963af-41a1-b5eb-fb14-fde42afb8400/0:foreman-planning] DEBUG c.d.e.p.a.s.SnowflakeUtilities - Duplicate table found: [PRH3, S9704_GL_00, BATIMENT]
2021-01-31 12:02:24,711 [1fe963af-41a1-b5eb-fb14-fde42afb8400/0:foreman-planning] DEBUG c.d.e.p.a.s.SnowflakeUtilities - Duplicate table found: [PRH3, S9704_GL_00, MONTEE]
2021-01-31 12:02:24,711 [1fe963af-41a1-b5eb-fb14-fde42afb8400/0:foreman-planning] DEBUG c.d.e.p.a.s.SnowflakeUtilities - Duplicate table found: [PRH3, S9704_GL_00, ENSEMBLE]
2021-01-31 12:02:24,711 [1fe963af-41a1-b5eb-fb14-fde42afb8400/0:foreman-planning] DEBUG c.d.e.p.a.s.SnowflakeUtilities - Duplicate table found: [PRH3, S9704_GL_00, AGENCE]
2021-01-31 12:02:24,711 [1fe963af-41a1-b5eb-fb14-fde42afb8400/0:foreman-planning] DEBUG c.d.e.p.a.s.SnowflakeUtilities - Duplicate table found: [PRH3, S9704_GL_00, BATIMENT]
2021-01-31 12:02:24,711 [1fe963af-41a1-b5eb-fb14-fde42afb8400/0:foreman-planning] DEBUG c.d.e.p.a.s.SnowflakeUtilities - Duplicate table found: [PRH3, S9704_GL_00, ENSEMBLE]
2021-01-31 12:02:24,711 [1fe963af-41a1-b5eb-fb14-fde42afb8400/0:foreman-planning] DEBUG c.d.e.p.a.s.SnowflakeUtilities - Duplicate table found: [PRH3, S9704_GL_00, AGENCE]
2021-01-31 12:02:24,711 [1fe963af-41a1-b5eb-fb14-fde42afb8400/0:foreman-planning] DEBUG c.d.e.p.a.s.SnowflakeUtilities - Duplicate table found: [PRH3, S9704_GL_00, CONTACT]
2021-01-31 12:02:24,711 [1fe963af-41a1-b5eb-fb14-fde42afb8400/0:foreman-planning] DEBUG c.d.e.p.a.s.SnowflakeUtilities - Duplicate table found: [PRH3, S9704_GL_00, CONTACT]
2021-01-31 12:02:24,711 [1fe963af-41a1-b5eb-fb14-fde42afb8400/0:foreman-planning] DEBUG c.d.e.p.a.s.SnowflakeUtilities - Duplicate table found: [PRH3, S9704_GL_00, CONTACT]
2021-01-31 12:02:24,711 [1fe963af-41a1-b5eb-fb14-fde42afb8400/0:foreman-planning] DEBUG c.d.e.p.a.s.SnowflakeUtilities - Duplicate table found: [PRH3, S9704_GL_00, ENSEMBLE]
2021-01-31 12:02:24,711 [1fe963af-41a1-b5eb-fb14-fde42afb8400/0:foreman-planning] DEBUG c.d.e.p.a.s.SnowflakeUtilities - Duplicate table found: [PRH3, S9704_GL_00, AGENCE]
2021-01-31 12:02:24,711 [1fe963af-41a1-b5eb-fb14-fde42afb8400/0:foreman-planning] DEBUG c.d.e.p.a.s.SnowflakeUtilities - Duplicate table found: [PRH3, S9704_GL_00, BATIMENT]
2021-01-31 12:02:24,711 [1fe963af-41a1-b5eb-fb14-fde42afb8400/0:foreman-planning] DEBUG c.d.e.p.a.s.SnowflakeUtilities - Duplicate table found: [PRH3, S9704_GL_00, MONTEE]
2021-01-31 12:02:24,712 [1fe963af-41a1-b5eb-fb14-fde42afb8400/0:foreman-planning] DEBUG c.d.e.p.a.s.SnowflakeUtilities - Duplicate table found: [PRH3, S9704_GL_00, ENSEMBLE]
2021-01-31 12:02:24,712 [1fe963af-41a1-b5eb-fb14-fde42afb8400/0:foreman-planning] DEBUG c.d.e.p.a.s.SnowflakeUtilities - Duplicate table found: [PRH3, S9704_GL_00, AGENCE]
2021-01-31 12:02:24,712 [1fe963af-41a1-b5eb-fb14-fde42afb8400/0:foreman-planning] DEBUG c.d.e.p.a.s.SnowflakeUtilities - Duplicate table found: [PRH3, S9704_GL_00, BATIMENT]
2021-01-31 12:02:24,712 [1fe963af-41a1-b5eb-fb14-fde42afb8400/0:foreman-planning] DEBUG c.d.e.p.a.s.SnowflakeUtilities - Duplicate table found: [PRH3, S9704_GL_00, ENSEMBLE]
2021-01-31 12:02:24,712 [1fe963af-41a1-b5eb-fb14-fde42afb8400/0:foreman-planning] DEBUG c.d.e.p.a.s.SnowflakeUtilities - Duplicate table found: [PRH3, S9704_GL_00, AGENCE]
2021-01-31 12:02:24,712 [1fe963af-41a1-b5eb-fb14-fde42afb8400/0:foreman-planning] DEBUG c.d.e.p.a.s.SnowflakeUtilities - Duplicate table found: [PRH3, S9704_GL_00, CONTACT]
2021-01-31 12:02:24,712 [1fe963af-41a1-b5eb-fb14-fde42afb8400/0:foreman-planning] DEBUG c.d.e.p.a.s.SnowflakeUtilities - Duplicate table found: [PRH3, S9704_GL_00, CONTACT]
2021-01-31 12:02:24,714 [1fe963af-41a1-b5eb-fb14-fde42afb8400/0:foreman-planning] DEBUG c.d.e.p.a.s.SnowflakeUtilities - Duplicate table found: [PRH3, S9704_GL_00, CONTACT]
2021-01-31 12:02:24,714 [1fe963af-41a1-b5eb-fb14-fde42afb8400/0:foreman-planning] DEBUG c.d.e.p.a.s.SnowflakeUtilities - Duplicate table found: [PRH3, S9704_GL_00, ENSEMBLE]
2021-01-31 12:02:24,714 [1fe963af-41a1-b5eb-fb14-fde42afb8400/0:foreman-planning] DEBUG c.d.e.p.a.s.SnowflakeUtilities - Duplicate table found: [PRH3, S9704_GL_00, AGENCE]
2021-01-31 12:02:24,714 [1fe963af-41a1-b5eb-fb14-fde42afb8400/0:foreman-planning] DEBUG c.d.e.p.a.s.SnowflakeUtilities - Duplicate table found: [PRH3, S9704_GL_00, BATIMENT]
2021-01-31 12:02:24,714 [1fe963af-41a1-b5eb-fb14-fde42afb8400/0:foreman-planning] DEBUG c.d.e.p.a.s.SnowflakeUtilities - Duplicate table found: [PRH3, S9704_GL_00, MONTEE]
2021-01-31 12:02:24,714 [1fe963af-41a1-b5eb-fb14-fde42afb8400/0:foreman-planning] DEBUG c.d.e.p.a.s.SnowflakeUtilities - Duplicate table found: [PRH3, S9704_GL_00, ENSEMBLE]
2021-01-31 12:02:24,714 [1fe963af-41a1-b5eb-fb14-fde42afb8400/0:foreman-planning] DEBUG c.d.e.p.a.s.SnowflakeUtilities - Duplicate table found: [PRH3, S9704_GL_00, AGENCE]
2021-01-31 12:02:24,715 [1fe963af-41a1-b5eb-fb14-fde42afb8400/0:foreman-planning] DEBUG c.d.e.p.a.s.SnowflakeUtilities - Duplicate table found: [PRH3, S9704_GL_00, BATIMENT]
2021-01-31 12:02:24,715 [1fe963af-41a1-b5eb-fb14-fde42afb8400/0:foreman-planning] DEBUG c.d.e.p.a.s.SnowflakeUtilities - Duplicate table found: [PRH3, S9704_GL_00, ENSEMBLE]
2021-01-31 12:02:24,715 [1fe963af-41a1-b5eb-fb14-fde42afb8400/0:foreman-planning] DEBUG c.d.e.p.a.s.SnowflakeUtilities - Duplicate table found: [PRH3, S9704_GL_00, AGENCE]
All these tables are PDS, most of them are small but are used in complex VDS that have reflection.
I then realized that all these tables are used in a new VDS with its reflection was created the day before the problem arises.
I dropped the reflection and everything sound to run smoothly again.
I then recreated it as the VDS is quite complex and everything keeps running OK, under 1s on simple select over PDS.
I’m not sure where the problem is and why a reflection on a VDS can cause that kind of situation on a PDS access.
Maybe you can have some info.
Cheers,