@rex0220/kintone-sql-tools 3.54.4 → 3.55.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist-cli/ksql.js CHANGED
@@ -19887,7 +19887,7 @@ async function fetchTableRecordsForFullScan(stmt, table, client, maxRecords, par
19887
19887
  });
19888
19888
  return resolved.records;
19889
19889
  }
19890
- const parentQuery = isMainTable ? "" : "";
19890
+ const parentQuery = isMainTable && allowOriginalWherePushdown && stmt.joins.length === 0 && stmt.where !== null && resolvedWhereCapabilities.get(stmt)?.capability === "EXACT_PUSHDOWN" && !whereRequiresJsEval(stmt.where) ? whereToKintone(stmt.where) : "";
19891
19891
  const parentResolved = await fetchRecordsForSharedPlan(client.getRecords, table.appId, parentQuery, fields, {
19892
19892
  parallel,
19893
19893
  maxRecords,