@superatomai/sdk-node 0.0.33-mds → 0.0.34-mds

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/index.js CHANGED
@@ -7052,12 +7052,18 @@ function extractEntityDetails(description) {
7052
7052
  function extractColumnNames(block) {
7053
7053
  const columns = [];
7054
7054
  const seen = /* @__PURE__ */ new Set();
7055
- const colPattern = /(?:^|,)\s*([^,()\[\]{}\n]+?)\s*\((?:NUMBER|TEXT|BOOLEAN|TIMESTAMP|INTEGER|FLOAT|DECIMAL|DATE|BIGINT|VARCHAR|CHAR|DOUBLE|REAL|ARRAY|OBJECT)\)/gi;
7055
+ const colPattern = /(?:^|,)\s*([^,()\[\]{}\n]+?)\s*\((?:NUMBER|TEXT|BOOLEAN|TIMESTAMP|INTEGER|FLOAT|DECIMAL|DATE|BIGINT|VARCHAR|CHAR|DOUBLE|REAL|ARRAY|OBJECT)(?:[^)]*)\)(?:\[[^\]]*\])?\{([^}]+)\}|(?:^|,)\s*([^,()\[\]{}\n]+?)\s*\((?:NUMBER|TEXT|BOOLEAN|TIMESTAMP|INTEGER|FLOAT|DECIMAL|DATE|BIGINT|VARCHAR|CHAR|DOUBLE|REAL|ARRAY|OBJECT)(?:[^)]*)\)/gi;
7056
7056
  let match;
7057
7057
  while ((match = colPattern.exec(block)) !== null) {
7058
- const col = match[1].trim();
7058
+ const col = (match[1] || match[3] || "").trim();
7059
+ const samples = match[2] || "";
7059
7060
  if (col && col.length < 60 && !col.includes("\u2022") && !seen.has(col)) {
7060
- columns.push(col);
7061
+ const sampleValues = samples.split("|").map((s) => s.trim()).filter(Boolean);
7062
+ if (sampleValues.length > 0 && sampleValues.length <= 10) {
7063
+ columns.push(`${col}{${sampleValues.join("|")}}`);
7064
+ } else {
7065
+ columns.push(col);
7066
+ }
7061
7067
  seen.add(col);
7062
7068
  }
7063
7069
  }