[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7C2K9NB9KA8X4HN2CJ0GA25":3,"skill-same:01M7C2K9NB9KA8X4HN2CJ0GA25":57},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":13,"repositoryHtmlUrl":26,"repositoryHomepageUrl":6,"ownerHtmlUrl":27,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":28,"install":29,"resources":42},"01M7C2K9NB9KA8X4HN2CJ0GA25","materialize",null,"Use when the result of a Denodo 9.5 query has to be stored as a table, or a slow federated query should run from data placed next to it — a remote table other tools read (\"store this view as a table in our warehouse\", \"a nightly table for the data science team\"), a frozen snapshot (\"a frozen copy for the auditors\"), a summary that answers aggregate queries without them changing (\"the dashboard is slow and we can't change its SQL\", \"precompute the aggregates\"), a data movement (\"the join between the file and the database is slow\"), a materialized table. Also when \"The REFRESH command is only valid for Summaries and Remote Tables\", a refreshed table came back empty, a summary answers other numbers than the views, DROP_REMOTE_TABLE fails, or a materialized table refuses an UPDATE. Not for the full cache of a view (\u002Fdenodo:cache), not for changing rows of an existing table (\u002Fdenodo:dml).","kirivandubai\u002Fdenodo_wipe_coading_skills","kirivandubai","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F221521416?v=4","01M7C2HC9KETA166XKR09YMKZQ","01M7C2HCAJ787NNYKMCG12S3DY",0,"MIT","https:\u002F\u002Fgithub.com\u002Fkirivandubai\u002Fdenodo_wipe_coading_skills\u002Fblob\u002Fmain\u002Fskills\u002Fmaterialize\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: materialize\ndescription: Use when the result of a Denodo 9.5 query has to be stored as a table, or a slow federated query should run from data placed next to it — a remote table other tools read (\"store this view as a table in our warehouse\", \"a nightly table for the data science team\"), a frozen snapshot (\"a frozen copy for the auditors\"), a summary that answers aggregate queries without them changing (\"the dashboard is slow and we can't change its SQL\", \"precompute the aggregates\"), a data movement (\"the join between the file and the database is slow\"), a materialized table. Also when \"The REFRESH command is only valid for Summaries and Remote Tables\", a refreshed table came back empty, a summary answers other numbers than the views, DROP_REMOTE_TABLE fails, or a materialized table refuses an UPDATE. Not for the full cache of a view (\u002Fdenodo:cache), not for changing rows of an existing table (\u002Fdenodo:dml).\n---\n\n# Results stored as tables, and data placed for a query\n\nFour ways to keep the result of a query somewhere, each with its own owner and its own way\nof going wrong:\n\n- **Remote table** — a real table in a database of a JDBC data source, created and loaded from\n  a query, with a base view over it; `REFRESH` empties it and loads it again. Other tools read\n  it directly.\n- **Summary** — the same kind of table, plus a promise to the optimizer: any query it can\n  answer from the summary is rewritten to read it, silently, for everyone.\n- **Data movement** — the small side of a join copied, per query, into a temporary table in\n  the data source of the big side, so the join runs there; nothing stays.\n- **Materialized table** — a table in the cache database that Denodo owns, filled by\n  `INSERT`; it has no source and no lineage.\n\n**All four write to a database outside Denodo's catalog** — a table appears, is emptied or\nis replaced in a system other people and programs use. That is what the rule below is about.\n\nThis skill covers creating, loading, refreshing and dropping them, and choosing between them.\nThe full cache of a view is `\u002Fdenodo:cache`; inserting, updating or deleting rows of a table\nthat exists is `\u002Fdenodo:dml`; the views they are built from are `\u002Fdenodo:views`; a JDBC data\nsource is `\u002Fdenodo:datasources`. **Nothing here schedules anything**: a nightly `REFRESH` is a\nDenodo Scheduler job (`\u002Fdenodo:scheduler`) or the team's own scheduler running a file from this\nskill.\n\nMost of what goes wrong here gives no error: read \"Silent failures\" at the end first.\n\n## Which one\n\nFirst find out **why** the query is slow, or **who** reads the table, before choosing:\n`\u002Fdenodo:views`, `references\u002Fdelegation.md`, shows whether rows travel between data sources.\n\n| The human wants | Use | Not |\n|---|---|---|\n| the result as a table that another tool reads directly — a model's training job, an ETL, a BI extract — refreshed or frozen | **remote table** | a cache: its table is Denodo's internal copy, renamed and swapped at will |\n| a view's own queries answered from a copy, under the same view name | `\u002Fdenodo:cache` | |\n| aggregate queries over a model faster **without changing them** (BI tools generate the SQL), when figures as of the last load are acceptable | **summary** — the views stay as they are, and any query the summary can answer is sped up | a full cache of each view queried: a 0-row window until its first load, and a change to views others read |\n| a federated join faster with **current** data — a small side (a file, another system) joined to a big table in a database | **data movement** of the small side into the big side's data source | a summary or a cache, which answer as of their load |\n| rows that exist nowhere else — targets, a mapping someone typed — kept in Denodo, with no database of your own to write to | **materialized table** | |\n| rows added to, or corrected in, a table that exists | `\u002Fdenodo:dml` | |\n\nA temporary table (`CREATE TEMPORARY TABLE`) lives for one session and is invisible to anyone\nelse — not for anything another person reads.\n\n## The rule: new is yours, existing is the human's\n\nA table that did not exist before this session, created by\na statement that cannot overwrite anything, where the human said it should go, is yours to\ncreate. Anything that replaces, empties or drops a table that existed before this session, or\nchanges the answers of queries you did not write, waits for the human's yes.\n\n| You do it yourself | Only after the human's yes |\n|---|---|\n| the reads: is the name free, how many rows, what reads the target, the query plan — and `vql plan`, whose `own` says which tables you created in this session (`\u002Fdenodo:vql`) | `replace_remote_table_if_exist = true`, `CREATE OR REPLACE REMOTE TABLE` — whatever the name holds |\n| a **new** remote table: `CREATE_REMOTE_TABLE` with `replace_remote_table_if_exist = false`, in the data source and schema the human named, under a name the reads show free, after stating the row count | a remote table in a data source or schema the human did not name |\n| `REFRESH` of a remote table you created in this session, and `replace_remote_table_if_exist = true` over one — the empty table a failed load left included; an incremental load into one (`references\u002Fincremental.md`) | `REFRESH` of any table older than this session — it is emptied first; an incremental load into one — every run writes into it |\n| a summary created **unloaded** (`DATA_LOAD_IMMEDIATE = FALSE`) and its plan checked: unloaded, it writes nothing and the optimizer never uses it — the data source and schema it names become part of the yes for its load. When the human named none, propose the data source the big table already lives in and its data-load schema, and say it is a proposal | **every load of a summary** — the first `REFRESH`, a `CREATE` that loads, every reload: from that moment it answers queries you did not write |\n| data movement in a view you created in this session | data movement added to a view that existed before this session: every query of it then creates a table in the target database |\n| a new materialized table in your project's database, and re-declaring or inserting into one you created in this session | `CREATE OR REPLACE MATERIALIZED TABLE` over one older than this session — it empties it |\n| writing every file | a new load query for a remote table older than this session (the base view re-declared, \"Refresh it\") — it decides what the next refresh writes |\n| — | `DROP_REMOTE_TABLE`, `DROP VIEW` of any of these — your own included |\n\nThe tool flags all of these `table` or `procedure`, the new table included: it cannot see\nwhose a table is, and the flag is not the rule (`\u002Fdenodo:execute`).\n\nReport what you did and ask for the rest in this shape:\n\n```\nCreated dwh.reporting.household_income (ds_dwh) for the pricing team's models:\n7,200 rows (inserted_rows), the same as the query; base view bv_dwh_household_income.\nThe name was free (GET_JDBC_DATASOURCE_TABLES); the file refuses to overwrite.\nColumns land as: household_sk bigint, buy_potential varchar(4000), …\ntables\u002Fhousehold_income_refresh.vql — REFRESH: empties the table, then loads it.\n  If the load fails, the table stays EMPTY until the next good run.\n  Nothing schedules it: it belongs in a Scheduler job after the warehouse load, one that alerts.\nWaiting for your yes: none.\n```\n\nWhen a step needs the yes and you cannot ask — the human is away, the deadline is close —\nthe answer is the files and this message, not the step. Then the message opens with what is\n**not** there and what that costs by the deadline, then what you found, then each file and\nwhether it waits for the yes. Name the databases whose readers you could not check.\n\n| Rationalization | Reality |\n|---|---|\n| \"Somebody started it and never finished — I'll just finish it\" | The table exists, so replacing it is the yes, however abandoned it looks. A table that looks forgotten is often one another team reads. |\n| \"They said: do whatever you need on the server\" | That is the goal. The yes is to the statements, after the human has seen them. |\n| \"I'll use another name, then it's new\" | The readers read the name they were given. A different name is the human's choice, not a way around the question. (A new period of a snapshot is a new table with its own name — that is the design, not this.) |\n| \"`CREATE OR REPLACE` keeps the file re-appliable\" | For a table in a database it drops whatever has that name; for a snapshot it refills the frozen copy from today's data. The procedure with `replace = false` fails instead of overwriting — that is the point. |\n| \"A summary only makes queries faster; the answers stay the same\" | Only until a row or a view under it changes. Then every rewritten query answers the old figures. |\n| \"If the refresh fails, yesterday's rows stay\" | `REFRESH` empties the table first. A failed load leaves it empty. |\n| \"I'll refresh with a `DELETE` and an `INSERT … SELECT`\" | Two writes, the same empty window, and a base view that no longer says where its data comes from. `REFRESH` is the statement. |\n\n**Red flags — stop:** `replace_remote_table_if_exist = true` or `OR REPLACE` in front of\n`REMOTE TABLE`, `SUMMARY VIEW` or `MATERIALIZED TABLE`, on a name you did not create in this\nsession; a table about to be created or loaded in a schema the human did not name;\na `REFRESH` of a table you did not create; a summary about to be loaded; `SELECT *` in a load\nquery; `env.production` is `true`.\n\n## Templates\n\nThe example database is `sales_analytics`; `ds_dwh` is a JDBC data source over the team's\nreporting warehouse (`\u002Fdenodo:datasources`), with tables going to catalog `dwh`, schema\n`reporting`. On a database without catalogs the documentation says `null` for the catalog, and\nits own example passes `''` — *unverified: 9.5 documentation only*; the same for a database\nwithout schemas. The blocks build on each other, in this order.\n\n### Before you create: is the name free, and what will land\n\n```sql\n-- verified: 9.5.1 (live, 2026-10-06)\nCONNECT DATABASE sales_analytics;\n\nSELECT table_name\nFROM GET_JDBC_DATASOURCE_TABLES()\nWHERE input_database_name = 'sales_analytics' AND input_datasource_name = 'ds_dwh'\n  AND input_catalog_name = 'dwh' AND input_schema_name = 'reporting'\n  AND UPPER(table_name) = UPPER('household_income');\n\nSELECT COUNT(*) AS will_load\nFROM iv_household_income;\n```\n\n- **No row means the name is free.** A row means a table of that name exists — someone's, whatever\n  its name suggests: stop and ask (the rule above). `UPPER` on both sides because Denodo compares\n  the name exactly and SQL Server under its default case-insensitive collation does not:\n  `HOUSEHOLD_INCOME` is the same table there. The answer's columns are `catalog_name`,\n  `schema_name`, `table_name`, `type`.\n- Run these reads **before** the create, as reads: inside a file a `SELECT` that finds a row\n  stops nothing — what stops the create is `replace_remote_table_if_exist = false`.\n- **Who reads it:** the base views over it. `SELECT database_name, name FROM GET_VIEWS() WHERE\n  view_type = 0`, then for each candidate `SELECT source_catalog_name, source_schema_name,\n  source_table_name FROM GET_SOURCE_TABLE() WHERE input_database_name = '…' AND input_view_name\n  = '…'`; a view in another database is another team's. A database you may not read is a\n  reader you could not check — say so in the message. A table nobody made with\n  `CREATE_REMOTE_TABLE` (no `DATA_LOAD_QUERY` in its base view's `DESC VQL`) cannot be\n  refreshed at all: \"finishing\" it means replacing it.\n- `will_load` is the number `inserted_rows` must equal — and the number you tell the human\n  before a big load: every row passes through Denodo unless the query runs entirely in the\n  target data source.\n- The target the human named is the data source **and** the schema. A data source's default target\n  (`DATA_LOAD_CONFIGURATION … TARGET_SCHEMA` in its `DESC VQL`) is not a name the human gave.\n\n### A remote table\n\n```sql\n-- verified: 9.5.1 (live, 2026-10-06)\nCONNECT DATABASE sales_analytics;\n\nSELECT phase, status, error, inserted_rows, \"stored procedure result\"\nFROM CREATE_REMOTE_TABLE()\nWHERE remote_table_name = 'household_income'\n  AND replace_remote_table_if_exist = false\n  AND query = 'SELECT household_sk, income_band_sk, buy_potential, dependents, vehicles, income_lower_bound, income_upper_bound FROM iv_household_income'\n  AND datasource_database_name = 'sales_analytics'\n  AND datasource_name = 'ds_dwh'\n  AND datasource_catalog = 'dwh'\n  AND datasource_schema = 'reporting'\n  AND base_view_database_name = 'sales_analytics'\n  AND base_view_name = 'bv_dwh_household_income'\n  AND base_view_folder = '\u002F01 - connectivity'\n  AND replace_base_view_if_exist = false;\n```\n\n- **Three rows, `status = 'OK'` in each**, `inserted_rows` on phase 2. A name that exists makes\n  the call fail with nothing but `[STORED PROCEDURE] [ERROR]` and touches nothing — that bare\n  error is the reason the name check comes first.\n- **Name every column in `query`.** The load query is stored as written: a `SELECT *` loads\n  whatever the view has at the next `REFRESH`, and a column added to the view then fails the\n  load — after the table was emptied. Quotes inside it are doubled: `'… WHERE status = ''open'''`.\n- The base view gets the procedure's name for its wrapper too, and no primary key:\n  `ALTER TABLE bv_dwh_household_income DESCRIPTION = '…'` and `ALTER TABLE … ADD PRIMARY KEY (\n  'household_sk' )` — several columns: `( 'a', 'b' )` — keep its `DATA_LOAD_QUERY`: your own\n  new object, no yes needed.\n- **A text column that may hold characters beyond Latin** (names, addresses, free text): on SQL\n  Server (measured) a text without a source size lands as `varchar`, which turns them into `?`\n  without an error, and `CAST(\u003Ccol> AS nvarchar(\u003Cn>))` in `query` keeps them. Other databases\n  map the types their own way: read what landed (\"Verify\") before a reader relies on it.\n- **A failure after phase 1** (a value the database refuses — on SQL Server, a text over 4000\n  characters into the `varchar(4000)` such a text gets) leaves the table created and empty,\n  without a base view. Fix the\n  cause, then the same call with `replace_remote_table_if_exist = true`: that table is the one\n  you just made — check with the name query that nothing else had the name before you.\n- **A frozen snapshot is this call, once**: the period in the table name\n  (`household_income_2025q3`), the filter in `query`, and a file that says \"do not run again,\n  never REFRESH\" at the top. A second period is a second table. The procedure still beats the\n  command here — the count, a base view to compare the copy with, a clean drop — but its base\n  view is a `REFRESH` handle and writable: put \"frozen, never REFRESH\" in its `DESCRIPTION`,\n  and tell the human that only the database's owner can make the table read-only (a `DENY` on\n  SQL Server, a `REVOKE` of the write privileges elsewhere).\n\n### Refresh it\n\n```sql\n-- verified: 9.5.1 (live, 2026-10-06)\nCONNECT DATABASE sales_analytics;\n\nSELECT COUNT(*) AS will_load\nFROM iv_household_income;\n\nREFRESH bv_dwh_household_income;\n\nSELECT COUNT(*) AS loaded\nFROM bv_dwh_household_income;\n```\n\n- **`REFRESH` answers nothing** — no rows, no count. `loaded` must equal `will_load`; `0` after\n  a failed run means the table is empty for everyone right now.\n- The first `SELECT` proves the sources answer before the table is emptied — it narrows the\n  window, it does not close it. Readers who cannot live with an empty table between a failed\n  load and the next good one need a full cache with a status column (`\u002Fdenodo:cache`) instead.\n- **Before a refresh of a table you did not just create, read its load query**: `DESC VQL VIEW\n  bv_dwh_household_income ('includeDependencies' = 'no')` ends with `DATA_LOAD_QUERY = '…'`.\n  Run that query's `SELECT` and compare its columns with the table's (`DESC VIEW` of both):\n  any difference, or a `SELECT *` over a view that has changed, and the refresh empties the\n  table and fails. Comparing the query's rows with the table's also tells whether a refresh\n  would change anything at all.\n- **A wrong load query is changed without touching the table**: take the base view's `DESC VQL`\n  from `CREATE TABLE` on, make it `CREATE OR REPLACE TABLE` with the new `DATA_LOAD_QUERY`, apply\n  it; the next `REFRESH` loads by the new query. `ALTER TABLE … DATA_LOAD_QUERY` is a syntax\n  error. The new query must return the table's columns; on a table older than this session both\n  steps wait for the yes.\n- **Who runs it:** a Denodo Scheduler job (`\u002Fdenodo:scheduler`) or the human's own scheduler,\n  after the sources are loaded, with an alert on failure — the file and the time go into the\n  message. A job that refreshes a table older than this session is that `REFRESH`, every night:\n  the same yes. A reload grown too slow becomes an incremental load: `references\u002Fincremental.md`.\n\n### A summary — created unloaded, proved by the plan, then loaded\n\n```sql\n-- verified: 9.5.1 (live, 2026-10-06)\nCONNECT DATABASE sales_analytics;\n\nCREATE OR REPLACE SUMMARY VIEW s_household_band\n    INTO ds_dwh\n    CATALOG = 'dwh'\n    SCHEMA = 'reporting'\n    RELATIONNAME = 's_household_band'\n    IF RELATION EXISTS ERROR\n    DATA_LOAD_IMMEDIATE = FALSE\n    FOLDER = '\u002F03 - business entities'\n    DESCRIPTION = 'Households per income band and buy potential, precomputed for aggregate queries over iv_household_income. As of its last REFRESH.'\n    AS SELECT income_band_sk, buy_potential,\n              COUNT(*) AS households, SUM(dependents) AS dependents, SUM(vehicles) AS vehicles\n       FROM iv_household_income\n       GROUP BY income_band_sk, buy_potential;\n\nSELECT execution_plan\nFROM GET_QUERY_EXECUTION_PLAN()\nWHERE input_query = 'SELECT income_band_sk, COUNT(*) AS households FROM iv_household_income GROUP BY income_band_sk CONTEXT (''consider_all_summaries'' = ''on'')';\n```\n\n- **Unloaded, it changes no answer**: no table yet, and the optimizer ignores it until its first\n  load. That is what lets you prove it before asking. The plan of each query the human cares\n  about must show `acceleratedWithSummaries = [sales_analytics.s_household_band]` and\n  `optimizationsApplied = [Summary Acceleration]`; plan the dashboards' own queries, not one you\n  wrote to match. `consider_all_summaries` makes the planner consider the unloaded summary;\n  never *run* a query with it.\n- **What it can answer:** sums and counts at its grain or coarser, filters on its columns,\n  `COUNT(*)` from its count — so keep `COUNT(*)` in it. A `COUNT(DISTINCT …)` only if the\n  summary computes it, and only for a query grouped by exactly the summary's columns — a\n  distinct count does not add up, and the optimizer does not try. Not `AVG`, even with a sum\n  and a count in it; not a column or a filter it does not hold. Build it over the views the\n  queries name; see `references\u002Fsummaries.md`.\n- **`OR REPLACE` with `IF RELATION EXISTS ERROR` and `DATA_LOAD_IMMEDIATE = FALSE`** is\n  re-appliable while the summary is unloaded and refuses once a table of that name exists —\n  anyone's, the summary's own after its load included. A change to a loaded summary is `… IF\n  RELATION EXISTS REPLACE` and a load, both for the human's yes.\n- Summaries are created by a server administrator only; they are not available in the Denodo\n  Professional or Standard bundles (*documentation*).\n\n**Load it — on the human's yes**, and check it against the views themselves:\n\n```sql\n-- verified: 9.5.1 (live, 2026-10-06)\nCONNECT DATABASE sales_analytics;\n\nREFRESH s_household_band;\n\nSELECT income_band_sk, COUNT(*) AS households\nFROM iv_household_income\nGROUP BY income_band_sk\nORDER BY income_band_sk;\n\nSELECT income_band_sk, COUNT(*) AS households\nFROM iv_household_income\nGROUP BY income_band_sk\nORDER BY income_band_sk\nCONTEXT ('summary_rewrite' = 'off');\n```\n\n- **The two answers must be equal, row for row.** The first comes from the summary, the second from\n  the sources. Run the same pair after every change upstream: a difference is a stale summary, and\n  every rewritten query in the meantime returned it. Sums from the summary may come back with more\n  decimals than through the views (`numeric(38,20)` on SQL Server): compare values, not text.\n- **A failed `REFRESH` leaves the summary empty and in use**: every query sent to it answers\n  0 rows, a total `NULL` and `0`, while the sources are fine. The job that loads it checks the\n  pair above after each run and, when the load failed, runs `ALTER SUMMARY VIEW\n  s_household_band QUERY REWRITE ENABLED = FALSE` at once — slow and right instead of fast and\n  empty — and alerts. Put that file next to the load file.\n- **Its filters run in the summary's database.** On a case-insensitive database a filter that\n  matched nothing through the views matches through the summary (`'DELHI'` found `Delhi`).\n  Check that no two values the queries filter on differ only by case or trailing spaces.\n- A summary needs a scheduled `REFRESH` like a remote table, and the dashboards show figures\n  as of that load: say both in the message. Switching rewrite off for a stale summary is an\n  `ALTER`, for the yes.\n\n### Data movement for a federated join\n\n```sql\n-- verified: 9.5.1 (live, 2026-10-06)\nCONNECT DATABASE sales_analytics;\n\nCREATE OR REPLACE VIEW household_band_detail\n    FOLDER = '\u002F02 - integration'\n    DESCRIPTION = 'Households from the warehouse with the bounds of their income band from the band file. Each query copies the band file into the warehouse and joins there.'\n    AS SELECT h.household_sk, h.buy_potential, h.dependents,\n              ib.ib_lower_bound AS band_lower_bound, ib.ib_upper_bound AS band_upper_bound\n       FROM bv_dwh_household_income AS h\n            INNER JOIN bv_income_band AS ib ON h.income_band_sk = ib.ib_income_band_sk\n    CONTEXT ( DATAMOVEMENTPLAN = bv_income_band : JDBC ds_dwh );\n\nSELECT execution_plan\nFROM GET_QUERY_EXECUTION_PLAN()\nWHERE input_query = 'SELECT buy_potential, COUNT(*) AS households FROM household_band_detail GROUP BY buy_potential';\n```\n\n- **The small side moves to the big side's data source**: `bv_income_band` (a file) into\n  `ds_dwh`, where `bv_dwh_household_income` lives. Moved anywhere else — the cache data source,\n  a third database — the plan says `Data Movement` and the join still runs in Denodo.\n- The plan must show `optimizationsApplied = [Data Movement …]` and a `JDBC ROUTE` on `ds_dwh`\n  whose `SQLSentence` joins a `t_bv_income_band_\u003Cid>` table: that is the copy. It is dropped\n  when the query ends.\n- **Every query of the view creates and drops that table**, in the schema the data source's\n  data-load configuration names (`DATA_LOAD_CONFIGURATION … TARGET_SCHEMA` in its `DESC VQL`), so\n  its account needs `CREATE TABLE` there, and every query pays for moving the small side: a side of\n  millions of rows is not small. Answers stay current — nothing is stored between queries.\n- The plan goes into the view's own `CONTEXT`, which `CREATE OR REPLACE VIEW` keeps; a query can\n  set or switch one off for itself: `CONTEXT ( DATAMOVEMENTPLAN = bv_income_band : OFF )`.\n\n### A materialized table\n\n```sql\n-- verified: 9.5.1 (live, 2026-10-06)\nCONNECT DATABASE sales_analytics;\n\nCREATE MATERIALIZED TABLE income_band_target (\n        income_band_sk : int,\n        target_households : int,\n        set_by : text\n    )\n    FOLDER = '\u002F02 - integration'\n    CONSTRAINT 'pk_income_band_target' PRIMARY KEY ( 'income_band_sk' );\n\nINSERT INTO income_band_target (income_band_sk, target_households, set_by)\nVALUES (1, 400, 'planning 2025'), (2, 380, 'planning 2025'), (3, 360, 'planning 2025');\n\nSELECT COUNT(*) AS loaded\nFROM income_band_target;\n```\n\n- **Its rows exist nowhere else.** Never `CREATE OR REPLACE` it: over a filled table that\n  empties it, silently. The file runs once; later rows are `INSERT`s in files of their own.\n- **Only `INSERT`**: `Update on materialized tables is not allowed`, `Delete on … is not\n  allowed`. A correction is a new table, or `DROP VIEW` and a new one — the human's yes.\n- The primary key is not enforced: a second `INSERT` of the same key is accepted. Check\n  `SELECT key, COUNT(*) … HAVING COUNT(*) > 1` after each load.\n- It lives in the cache database (`C_INCOME_BAND_TARGET\u003Cdigits>`); the cache has to be\n  configured for the database (*documentation*). `SELECT … INTO \u003Cnew name> FROM …` creates one\n  from a query; it refuses a name that exists.\n- **A `decimal` kept twenty decimals whatever was declared**, with the cache database on SQL\n  Server (measured) — `DECIMAL(12,2)` in the SQL form of the column list stored `10.555` as\n  `10.55500000000000000000`. Round in the `INSERT`.\n\n### Drop — on the human's yes\n\n```sql\n-- verified: 9.5.1 (live, 2026-10-06)\nCONNECT DATABASE sales_analytics;\n\nSELECT used_by_name, depth\nFROM USED_BY()\nWHERE input_view_database_name = 'sales_analytics' AND input_view_name = 'bv_dwh_household_income';\n\nSELECT \"stored procedure result\"\nFROM DROP_REMOTE_TABLE()\nWHERE base_view_database_name = 'sales_analytics' AND base_view_name = 's_household_band'\n  AND drop_base_view_on_cascade = false;\n\nSELECT \"stored procedure result\"\nFROM DROP_REMOTE_TABLE()\nWHERE base_view_database_name = 'sales_analytics' AND base_view_name = 'bv_dwh_household_income'\n  AND drop_base_view_on_cascade = false;\n```\n\n- `DROP_REMOTE_TABLE` drops the table in the database and the base view or summary over it.\n  With `drop_base_view_on_cascade = false` it refuses while anything reads the view — the\n  `USED_BY` above says what — and drops nothing. It refuses a base view the procedure did not\n  create, too: a table made by the command or by someone's DDL is dropped by its owner.\n- `DROP VIEW` instead leaves the table in the database, orphaned.\n\n## What you need\n\n| Slot | Where it comes from |\n|---|---|\n| Which of the four | the \"Which one\" table, after the plan or the readers say why |\n| The target data source and schema | **the human** — a data source in the project or the team's shared one; never a default you found |\n| The table name | the human, or the warehouse's conventions; the summary's `s_` prefix (`\u002Fdenodo:vql`) |\n| The query | the view the readers need, every column named |\n| How often it is refreshed, and by what | the human; a Scheduler job is `\u002Fdenodo:scheduler`; the file is yours |\n| The server can do it | `env check --env dev` → `features.data_movement` (a remote table, a summary and a data movement need it — documentation) and `features.summary_rewrite` (a summary answers no query without it); `false` is the administrator's, `null` unknown |\n| The yes | the human, for everything in the right-hand column of the rule |\n\n## Verify\n\n| Check | How | Expect |\n|---|---|---|\n| The table holds the query | `inserted_rows`, then `COUNT(*)` of the base view, against `will_load` | equal |\n| The types landed as meant | `SELECT creation_vql FROM GENERATE_VQL_TO_CREATE_JDBC_BASE_VIEW() WHERE data_source_name = 'ds_dwh' AND catalog_name = 'dwh' AND schema_name = 'reporting' AND table_name = 'household_income' AND base_view_name = 'type_check'` — it only generates text and creates nothing; with `folder = '\u002F'` it fails; read `sourcetypename`, `sourcetypesize` | text widths, `nvarchar` where text is not Latin, the decimals the readers expect |\n| A loaded summary answers like the views | the pair in \"Load it\", after every load | equal; a failed load → rewrite off at once |\n| A refresh worked | `COUNT(*)` after `REFRESH` | the new count, not `0` |\n| A summary is used | the plan of the readers' query | `acceleratedWithSummaries = [\u003Cdb>.\u003Csummary>]` |\n| A data movement does its job | the plan | one `SQLSentence` in the big side's data source joining `t_\u003Cview>_\u003Cid>` |\n| Nothing old was touched | `GET_JDBC_DATASOURCE_TABLES` of the target schema before and after | one new table, nothing gone |\n\n## Silent failures\n\nEach runs without an error — *verified: 9.5.1 (live, 2026-10-02)*; rows 12, 13 and 15 with the\ntarget database on SQL Server — another database maps types and compares text its own way.\n\n| You did | What happens | Instead |\n|---|---|---|\n| 1. `REFRESH` while a source was down | the table is emptied and stays empty | check the sources first; the job alerts; readers who cannot see 0 rows need a cache |\n| 2. `SELECT *` in the load query, then a column was added to the view | the next `REFRESH` fails after emptying the table | name every column |\n| 3. `replace_remote_table_if_exist = true` \u002F `OR REPLACE` on a taken name | another team's table replaced; their views stay `OK` until a query reads a column that is gone | check the name; a taken one is the human's |\n| 4. changed the view a remote table is loaded from | no warning — `USED_BY` does not see the table; the next `REFRESH` fails after emptying it | search `DESC VQL DATABASE \u003Cdb>` for the view's name before changing it |\n| 5. loaded a summary, then the sources or the views under it changed | rewritten queries answer the old figures | `REFRESH` on a schedule; compare with `summary_rewrite` off |\n| 6. a summary for `AVG` queries, or for `COUNT(DISTINCT)` at another grain than its own | not used; nothing is faster | the plan first; sums and counts in it, a distinct count only at the queried grain |\n| 7. data movement into a data source the big side is not in | the plan says `Data Movement`, the join still runs in Denodo | the big side's data source |\n| 8. `DROP VIEW` of a remote table's base view or a summary | the table stays in the database | `DROP_REMOTE_TABLE` |\n| 9. `CREATE OR REPLACE MATERIALIZED TABLE` over one with rows | 0 rows | plain `CREATE`, once |\n| 10. two `INSERT`s of the same key into a materialized table | both kept | check duplicates after each load |\n| 11. the `CREATE REMOTE TABLE` command | no base view, no count; later neither `REFRESH` nor `DROP_REMOTE_TABLE` works on it | the procedure |\n| 12. a computed or file text into a remote table | it lands as `varchar(4000)`; a longer value fails the load and leaves an empty table | measure `MAX(LEN(…))` first; `CAST(… AS varchar(8000))` in the query makes the column that wide |\n| 13. non-Latin text into a `varchar` column | `?` for every character the code page lacks | `CAST(… AS nvarchar(n))` in the query |\n| 14. a summary's `REFRESH` failed | the summary is empty and still used: 0 rows, `NULL` totals for every query sent to it | rewrite off at once (`ALTER SUMMARY VIEW … QUERY REWRITE ENABLED = FALSE`), then reload |\n| 15. a filter answered through a summary or a remote table | compared in that database's collation — case and trailing spaces may stop counting | check the values; say where the query runs |\n\n## Common mistakes\n\n| You wrote | Server says | Fix |\n|---|---|---|\n| `CREATE_REMOTE_TABLE` on a name that exists | `CREATE_REMOTE_TABLE [STORED PROCEDURE] [ERROR]`, no reason | the name check; a taken name is the human's |\n| the command on a name that exists | `Remote table \"dwh\".\"reporting\".household_income already exists` | the same |\n| `REFRESH` of a base view the procedure did not create | `The REFRESH command is only valid for Summaries and Remote Tables` | create it with the procedure; a table someone else made is theirs to refresh |\n| `REFRESH` after the view gained a column | `Error executing data movement from view _p__… to source ds_dwh` — **table now empty** | name the columns in the load query; recreate it (the human's yes) |\n| `DROP_REMOTE_TABLE` on a hand-made base view, or with readers and `cascade = false` | `DROP_REMOTE_TABLE [STORED PROCEDURE] [ERROR]`, no reason; nothing dropped | `USED_BY`; the table's owner |\n| `CREATE OR REPLACE SUMMARY VIEW` over an existing one with `IF RELATION EXISTS ERROR` | `Remote table exists. Use clause IF RELATION EXISTS REPLACE to allow its replacement and create the summary.` | a change to a summary is the human's yes, with `REPLACE` |\n| `UPDATE` \u002F `DELETE` on a materialized table | `Update on materialized tables is not allowed` \u002F `Delete on materialized tables is not allowed` | a new table, or `INSERT` only |\n| `SELECT … INTO` an existing name | `error creating table: invalid view name: already exists` | a new name |\n| `DROP MATERIALIZED TABLE x` | `Syntax error: Exception parsing query near 'MATERIALIZED'` | `DROP VIEW x` |\n| `CAST(x AS double)` \u002F `CAST(x AS int)` in a load query | `Syntax error … near ')'` | `double precision`, `integer` (`\u002Fdenodo:vql`, dialect) |\n\n## Reference\n\n- `references\u002Fremote-tables.md` — the procedure and the command in full, every result and status,\n  types per Denodo type as measured, `REFRESH`, the readers of a table, materialized tables.\n- `references\u002Fincremental.md` — loading only what is new or changed: the upsert, its checks, a job.\n- `references\u002Fsummaries.md` — the `CREATE` and `ALTER SUMMARY VIEW` grammar, which queries are\n  rewritten (measured), the plan lines, staleness, incremental loads (documentation), the\n  switches per server, database and query, and data movement in full.\n","# Results stored as tables, and data placed for a query\n\nFour ways to keep the result of a query somewhere, each with its own owner and its own way\nof going wrong:\n\n- **Remote table** — a real table in a database of a JDBC data source, created and loaded from\n  a query, with a base view over it; `REFRESH` empties it and loads it again. Other tools read\n  it directly.\n- **Summary** — the same kind of table, plus a promise to the optimizer: any query it can\n  answer from the summary is rewritten to read it, silently, for everyone.\n- **Data movement** — the small side of a join copied, per query, into a temporary table in\n  the data source of the big side, so the join runs there; nothing stays.\n- **Materialized table** — a table in the cache database that Denodo owns, filled by\n  `INSERT`; it has no source and no lineage.\n\n**All four write to a database outside Denodo's catalog** — a table appears, is emptied or\nis replaced in a system other people and programs use. That is what the rule below is about.\n\nThis skill covers creating, loading, refreshing and dropping them, and choosing between them.\nThe full cache of a view is `\u002Fdenodo:cache`; inserting, updating or deleting rows of a table\nthat exists is `\u002Fdenodo:dml`; the views they are built from are `\u002Fdenodo:views`; a JDBC data\nsource is `\u002Fdenodo:datasources`. **Nothing here schedules anything**: a nightly `REFRESH` is a\nDenodo Scheduler job (`\u002Fdenodo:scheduler`) or the team's own scheduler running a file from this\nskill.\n\nMost of what goes wrong here gives no error: read \"Silent failures\" at the end first.\n\n## Which one\n\nFirst find out **why** the query is slow, or **who** reads the table, before choosing:\n`\u002Fdenodo:views`, `references\u002Fdelegation.md`, shows whether rows travel between data sources.\n\n| The human wants | Use | Not |\n|---|---|---|\n| the result as a table that another tool reads directly — a model's training job, an ETL, a BI extract — refreshed or frozen | **remote table** | a cache: its table is Denodo's internal copy, renamed and swapped at will |\n| a view's own queries answered from a copy, under the same view name | `\u002Fdenodo:cache` | |\n| aggregate queries over a model faster **without changing them** (BI tools generate the SQL), when figures as of the last load are acceptable | **summary** — the views stay as they are, and any query the summary can answer is sped up | a full cache of each view queried: a 0-row window until its first load, and a change to views others read |\n| a federated join faster with **current** data — a small side (a file, another system) joined to a big table in a database | **data movement** of the small side into the big side's data source | a summary or a cache, which answer as of their load |\n| rows that exist nowhere else — targets, a mapping someone typed — kept in Denodo, with no database of your own to write to | **materialized table** | |\n| rows added to, or corrected in, a table that exists | `\u002Fdenodo:dml` | |\n\nA temporary table (`CREATE TEMPORARY TABLE`) lives for one session and is invisible to anyone\nelse — not for anything another person reads.\n\n## The rule: new is yours, existing is the human's\n\nA table that did not exist before this session, created by\na statement that cannot overwrite anything, where the human said it should go, is yours to\ncreate. Anything that replaces, empties or drops a table that existed before this session, or\nchanges the answers of queries you did not write, waits for the human's yes.\n\n| You do it yourself | Only after the human's yes |\n|---|---|\n| the reads: is the name free, how many rows, what reads the target, the query plan — and `vql plan`, whose `own` says which tables you created in this session (`\u002Fdenodo:vql`) | `replace_remote_table_if_exist = true`, `CREATE OR REPLACE REMOTE TABLE` — whatever the name holds |\n| a **new** remote table: `CREATE_REMOTE_TABLE` with `replace_remote_table_if_exist = false`, in the data source and schema the human named, under a name the reads show free, after stating the row count | a remote table in a data source or schema the human did not name |\n| `REFRESH` of a remote table you created in this session, and `replace_remote_table_if_exist = true` over one — the empty table a failed load left included; an incremental load into one (`references\u002Fincremental.md`) | `REFRESH` of any table older than this session — it is emptied first; an incremental load into one — every run writes into it |\n| a summary created **unloaded** (`DATA_LOAD_IMMEDIATE = FALSE`) and its plan checked: unloaded, it writes nothing and the optimizer never uses it — the data source and schema it names become part of the yes for its load. When the human named none, propose the data source the big table already lives in and its data-load schema, and say it is a proposal | **every load of a summary** — the first `REFRESH`, a `CREATE` that loads, every reload: from that moment it answers queries you did not write |\n| data movement in a view you created in this session | data movement added to a view that existed before this session: every query of it then creates a table in the target database |\n| a new materialized table in your project's database, and re-declaring or inserting into one you created in this session | `CREATE OR REPLACE MATERIALIZED TABLE` over one older than this session — it empties it |\n| writing every file | a new load query for a remote table older than this session (the base view re-declared, \"Refresh it\") — it decides what the next refresh writes |\n| — | `DROP_REMOTE_TABLE`, `DROP VIEW` of any of these — your own included |\n\nThe tool flags all of these `table` or `procedure`, the new table included: it cannot see\nwhose a table is, and the flag is not the rule (`\u002Fdenodo:execute`).\n\nReport what you did and ask for the rest in this shape:\n\n```\nCreated dwh.reporting.household_income (ds_dwh) for the pricing team's models:\n7,200 rows (inserted_rows), the same as the query; base view bv_dwh_household_income.\nThe name was free (GET_JDBC_DATASOURCE_TABLES); the file refuses to overwrite.\nColumns land as: household_sk bigint, buy_potential varchar(4000), …\ntables\u002Fhousehold_income_refresh.vql — REFRESH: empties the table, then loads it.\n  If the load fails, the table stays EMPTY until the next good run.\n  Nothing schedules it: it belongs in a Scheduler job after the warehouse load, one that alerts.\nWaiting for your yes: none.\n```\n\nWhen a step needs the yes and you cannot ask — the human is away, the deadline is close —\nthe answer is the files and this message, not the step. Then the message opens with what is\n**not** there and what that costs by the deadline, then what you found, then each file and\nwhether it waits for the yes. Name the databases whose readers you could not check.\n\n| Rationalization | Reality |\n|---|---|\n| \"Somebody started it and never finished — I'll just finish it\" | The table exists, so replacing it is the yes, however abandoned it looks. A table that looks forgotten is often one another team reads. |\n| \"They said: do whatever you need on the server\" | That is the goal. The yes is to the statements, after the human has seen them. |\n| \"I'll use another name, then it's new\" | The readers read the name they were given. A different name is the human's choice, not a way around the question. (A new period of a snapshot is a new table with its own name — that is the design, not this.) |\n| \"`CREATE OR REPLACE` keeps the file re-appliable\" | For a table in a database it drops whatever has that name; for a snapshot it refills the frozen copy from today's data. The procedure with `replace = false` fails instead of overwriting — that is the point. |\n| \"A summary only makes queries faster; the answers stay the same\" | Only until a row or a view under it changes. Then every rewritten query answers the old figures. |\n| \"If the refresh fails, yesterday's rows stay\" | `REFRESH` empties the table first. A failed load leaves it empty. |\n| \"I'll refresh with a `DELETE` and an `INSERT … SELECT`\" | Two writes, the same empty window, and a base view that no longer says where its data comes from. `REFRESH` is the statement. |\n\n**Red flags — stop:** `replace_remote_table_if_exist = true` or `OR REPLACE` in front of\n`REMOTE TABLE`, `SUMMARY VIEW` or `MATERIALIZED TABLE`, on a name you did not create in this\nsession; a table about to be created or loaded in a schema the human did not name;\na `REFRESH` of a table you did not create; a summary about to be loaded; `SELECT *` in a load\nquery; `env.production` is `true`.\n\n## Templates\n\nThe example database is `sales_analytics`; `ds_dwh` is a JDBC data source over the team's\nreporting warehouse (`\u002Fdenodo:datasources`), with tables going to catalog `dwh`, schema\n`reporting`. On a database without catalogs the documentation says `null` for the catalog, and\nits own example passes `''` — *unverified: 9.5 documentation only*; the same for a database\nwithout schemas. The blocks build on each other, in this order.\n\n### Before you create: is the name free, and what will land\n\n```sql\n-- verified: 9.5.1 (live, 2026-10-06)\nCONNECT DATABASE sales_analytics;\n\nSELECT table_name\nFROM GET_JDBC_DATASOURCE_TABLES()\nWHERE input_database_name = 'sales_analytics' AND input_datasource_name = 'ds_dwh'\n  AND input_catalog_name = 'dwh' AND input_schema_name = 'reporting'\n  AND UPPER(table_name) = UPPER('household_income');\n\nSELECT COUNT(*) AS will_load\nFROM iv_household_income;\n```\n\n- **No row means the name is free.** A row means a table of that name exists — someone's, whatever\n  its name suggests: stop and ask (the rule above). `UPPER` on both sides because Denodo compares\n  the name exactly and SQL Server under its default case-insensitive collation does not:\n  `HOUSEHOLD_INCOME` is the same table there. The answer's columns are `catalog_name`,\n  `schema_name`, `table_name`, `type`.\n- Run these reads **before** the create, as reads: inside a file a `SELECT` that finds a row\n  stops nothing — what stops the create is `replace_remote_table_if_exist = false`.\n- **Who reads it:** the base views over it. `SELECT database_name, name FROM GET_VIEWS() WHERE\n  view_type = 0`, then for each candidate `SELECT source_catalog_name, source_schema_name,\n  source_table_name FROM GET_SOURCE_TABLE() WHERE input_database_name = '…' AND input_view_name\n  = '…'`; a view in another database is another team's. A database you may not read is a\n  reader you could not check — say so in the message. A table nobody made with\n  `CREATE_REMOTE_TABLE` (no `DATA_LOAD_QUERY` in its base view's `DESC VQL`) cannot be\n  refreshed at all: \"finishing\" it means replacing it.\n- `will_load` is the number `inserted_rows` must equal — and the number you tell the human\n  before a big load: every row passes through Denodo unless the query runs entirely in the\n  target data source.\n- The target the human named is the data source **and** the schema. A data source's default target\n  (`DATA_LOAD_CONFIGURATION … TARGET_SCHEMA` in its `DESC VQL`) is not a name the human gave.\n\n### A remote table\n\n```sql\n-- verified: 9.5.1 (live, 2026-10-06)\nCONNECT DATABASE sales_analytics;\n\nSELECT phase, status, error, inserted_rows, \"stored procedure result\"\nFROM CREATE_REMOTE_TABLE()\nWHERE remote_table_name = 'household_income'\n  AND replace_remote_table_if_exist = false\n  AND query = 'SELECT household_sk, income_band_sk, buy_potential, dependents, vehicles, income_lower_bound, income_upper_bound FROM iv_household_income'\n  AND datasource_database_name = 'sales_analytics'\n  AND datasource_name = 'ds_dwh'\n  AND datasource_catalog = 'dwh'\n  AND datasource_schema = 'reporting'\n  AND base_view_database_name = 'sales_analytics'\n  AND base_view_name = 'bv_dwh_household_income'\n  AND base_view_folder = '\u002F01 - connectivity'\n  AND replace_base_view_if_exist = false;\n```\n\n- **Three rows, `status = 'OK'` in each**, `inserted_rows` on phase 2. A name that exists makes\n  the call fail with nothing but `[STORED PROCEDURE] [ERROR]` and touches nothing — that bare\n  error is the reason the name check comes first.\n- **Name every column in `query`.** The load query is stored as written: a `SELECT *` loads\n  whatever the view has at the next `REFRESH`, and a column added to the view then fails the\n  load — after the table was emptied. Quotes inside it are doubled: `'… WHERE status = ''open'''`.\n- The base view gets the procedure's name for its wrapper too, and no primary key:\n  `ALTER TABLE bv_dwh_household_income DESCRIPTION = '…'` and `ALTER TABLE … ADD PRIMARY KEY (\n  'household_sk' )` — several columns: `( 'a', 'b' )` — keep its `DATA_LOAD_QUERY`: your own\n  new object, no yes needed.\n- **A text column that may hold characters beyond Latin** (names, addresses, free text): on SQL\n  Server (measured) a text without a source size lands as `varchar`, which turns them into `?`\n  without an error, and `CAST(\u003Ccol> AS nvarchar(\u003Cn>))` in `query` keeps them. Other databases\n  map the types their own way: read what landed (\"Verify\") before a reader relies on it.\n- **A failure after phase 1** (a value the database refuses — on SQL Server, a text over 4000\n  characters into the `varchar(4000)` such a text gets) leaves the table created and empty,\n  without a base view. Fix the\n  cause, then the same call with `replace_remote_table_if_exist = true`: that table is the one\n  you just made — check with the name query that nothing else had the name before you.\n- **A frozen snapshot is this call, once**: the period in the table name\n  (`household_income_2025q3`), the filter in `query`, and a file that says \"do not run again,\n  never REFRESH\" at the top. A second period is a second table. The procedure still beats the\n  command here — the count, a base view to compare the copy with, a clean drop — but its base\n  view is a `REFRESH` handle and writable: put \"frozen, never REFRESH\" in its `DESCRIPTION`,\n  and tell the human that only the database's owner can make the table read-only (a `DENY` on\n  SQL Server, a `REVOKE` of the write privileges elsewhere).\n\n### Refresh it\n\n```sql\n-- verified: 9.5.1 (live, 2026-10-06)\nCONNECT DATABASE sales_analytics;\n\nSELECT COUNT(*) AS will_load\nFROM iv_household_income;\n\nREFRESH bv_dwh_household_income;\n\nSELECT COUNT(*) AS loaded\nFROM bv_dwh_household_income;\n```\n\n- **`REFRESH` answers nothing** — no rows, no count. `loaded` must equal `will_load`; `0` after\n  a failed run means the table is empty for everyone right now.\n- The first `SELECT` proves the sources answer before the table is emptied — it narrows the\n  window, it does not close it. Readers who cannot live with an empty table between a failed\n  load and the next good one need a full cache with a status column (`\u002Fdenodo:cache`) instead.\n- **Before a refresh of a table you did not just create, read its load query**: `DESC VQL VIEW\n  bv_dwh_household_income ('includeDependencies' = 'no')` ends with `DATA_LOAD_QUERY = '…'`.\n  Run that query's `SELECT` and compare its columns with the table's (`DESC VIEW` of both):\n  any difference, or a `SELECT *` over a view that has changed, and the refresh empties the\n  table and fails. Comparing the query's rows with the table's also tells whether a refresh\n  would change anything at all.\n- **A wrong load query is changed without touching the table**: take the base view's `DESC VQL`\n  from `CREATE TABLE` on, make it `CREATE OR REPLACE TABLE` with the new `DATA_LOAD_QUERY`, apply\n  it; the next `REFRESH` loads by the new query. `ALTER TABLE … DATA_LOAD_QUERY` is a syntax\n  error. The new query must return the table's columns; on a table older than this session both\n  steps wait for the yes.\n- **Who runs it:** a Denodo Scheduler job (`\u002Fdenodo:scheduler`) or the human's own scheduler,\n  after the sources are loaded, with an alert on failure — the file and the time go into the\n  message. A job that refreshes a table older than this session is that `REFRESH`, every night:\n  the same yes. A reload grown too slow becomes an incremental load: `references\u002Fincremental.md`.\n\n### A summary — created unloaded, proved by the plan, then loaded\n\n```sql\n-- verified: 9.5.1 (live, 2026-10-06)\nCONNECT DATABASE sales_analytics;\n\nCREATE OR REPLACE SUMMARY VIEW s_household_band\n    INTO ds_dwh\n    CATALOG = 'dwh'\n    SCHEMA = 'reporting'\n    RELATIONNAME = 's_household_band'\n    IF RELATION EXISTS ERROR\n    DATA_LOAD_IMMEDIATE = FALSE\n    FOLDER = '\u002F03 - business entities'\n    DESCRIPTION = 'Households per income band and buy potential, precomputed for aggregate queries over iv_household_income. As of its last REFRESH.'\n    AS SELECT income_band_sk, buy_potential,\n              COUNT(*) AS households, SUM(dependents) AS dependents, SUM(vehicles) AS vehicles\n       FROM iv_household_income\n       GROUP BY income_band_sk, buy_potential;\n\nSELECT execution_plan\nFROM GET_QUERY_EXECUTION_PLAN()\nWHERE input_query = 'SELECT income_band_sk, COUNT(*) AS households FROM iv_household_income GROUP BY income_band_sk CONTEXT (''consider_all_summaries'' = ''on'')';\n```\n\n- **Unloaded, it changes no answer**: no table yet, and the optimizer ignores it until its first\n  load. That is what lets you prove it before asking. The plan of each query the human cares\n  about must show `acceleratedWithSummaries = [sales_analytics.s_household_band]` and\n  `optimizationsApplied = [Summary Acceleration]`; plan the dashboards' own queries, not one you\n  wrote to match. `consider_all_summaries` makes the planner consider the unloaded summary;\n  never *run* a query with it.\n- **What it can answer:** sums and counts at its grain or coarser, filters on its columns,\n  `COUNT(*)` from its count — so keep `COUNT(*)` in it. A `COUNT(DISTINCT …)` only if the\n  summary computes it, and only for a query grouped by exactly the summary's columns — a\n  distinct count does not add up, and the optimizer does not try. Not `AVG`, even with a sum\n  and a count in it; not a column or a filter it does not hold. Build it over the views the\n  queries name; see `references\u002Fsummaries.md`.\n- **`OR REPLACE` with `IF RELATION EXISTS ERROR` and `DATA_LOAD_IMMEDIATE = FALSE`** is\n  re-appliable while the summary is unloaded and refuses once a table of that name exists —\n  anyone's, the summary's own after its load included. A change to a loaded summary is `… IF\n  RELATION EXISTS REPLACE` and a load, both for the human's yes.\n- Summaries are created by a server administrator only; they are not available in the Denodo\n  Professional or Standard bundles (*documentation*).\n\n**Load it — on the human's yes**, and check it against the views themselves:\n\n```sql\n-- verified: 9.5.1 (live, 2026-10-06)\nCONNECT DATABASE sales_analytics;\n\nREFRESH s_household_band;\n\nSELECT income_band_sk, COUNT(*) AS households\nFROM iv_household_income\nGROUP BY income_band_sk\nORDER BY income_band_sk;\n\nSELECT income_band_sk, COUNT(*) AS households\nFROM iv_household_income\nGROUP BY income_band_sk\nORDER BY income_band_sk\nCONTEXT ('summary_rewrite' = 'off');\n```\n\n- **The two answers must be equal, row for row.** The first comes from the summary, the second from\n  the sources. Run the same pair after every change upstream: a difference is a stale summary, and\n  every rewritten query in the meantime returned it. Sums from the summary may come back with more\n  decimals than through the views (`numeric(38,20)` on SQL Server): compare values, not text.\n- **A failed `REFRESH` leaves the summary empty and in use**: every query sent to it answers\n  0 rows, a total `NULL` and `0`, while the sources are fine. The job that loads it checks the\n  pair above after each run and, when the load failed, runs `ALTER SUMMARY VIEW\n  s_household_band QUERY REWRITE ENABLED = FALSE` at once — slow and right instead of fast and\n  empty — and alerts. Put that file next to the load file.\n- **Its filters run in the summary's database.** On a case-insensitive database a filter that\n  matched nothing through the views matches through the summary (`'DELHI'` found `Delhi`).\n  Check that no two values the queries filter on differ only by case or trailing spaces.\n- A summary needs a scheduled `REFRESH` like a remote table, and the dashboards show figures\n  as of that load: say both in the message. Switching rewrite off for a stale summary is an\n  `ALTER`, for the yes.\n\n### Data movement for a federated join\n\n```sql\n-- verified: 9.5.1 (live, 2026-10-06)\nCONNECT DATABASE sales_analytics;\n\nCREATE OR REPLACE VIEW household_band_detail\n    FOLDER = '\u002F02 - integration'\n    DESCRIPTION = 'Households from the warehouse with the bounds of their income band from the band file. Each query copies the band file into the warehouse and joins there.'\n    AS SELECT h.household_sk, h.buy_potential, h.dependents,\n              ib.ib_lower_bound AS band_lower_bound, ib.ib_upper_bound AS band_upper_bound\n       FROM bv_dwh_household_income AS h\n            INNER JOIN bv_income_band AS ib ON h.income_band_sk = ib.ib_income_band_sk\n    CONTEXT ( DATAMOVEMENTPLAN = bv_income_band : JDBC ds_dwh );\n\nSELECT execution_plan\nFROM GET_QUERY_EXECUTION_PLAN()\nWHERE input_query = 'SELECT buy_potential, COUNT(*) AS households FROM household_band_detail GROUP BY buy_potential';\n```\n\n- **The small side moves to the big side's data source**: `bv_income_band` (a file) into\n  `ds_dwh`, where `bv_dwh_household_income` lives. Moved anywhere else — the cache data source,\n  a third database — the plan says `Data Movement` and the join still runs in Denodo.\n- The plan must show `optimizationsApplied = [Data Movement …]` and a `JDBC ROUTE` on `ds_dwh`\n  whose `SQLSentence` joins a `t_bv_income_band_\u003Cid>` table: that is the copy. It is dropped\n  when the query ends.\n- **Every query of the view creates and drops that table**, in the schema the data source's\n  data-load configuration names (`DATA_LOAD_CONFIGURATION … TARGET_SCHEMA` in its `DESC VQL`), so\n  its account needs `CREATE TABLE` there, and every query pays for moving the small side: a side of\n  millions of rows is not small. Answers stay current — nothing is stored between queries.\n- The plan goes into the view's own `CONTEXT`, which `CREATE OR REPLACE VIEW` keeps; a query can\n  set or switch one off for itself: `CONTEXT ( DATAMOVEMENTPLAN = bv_income_band : OFF )`.\n\n### A materialized table\n\n```sql\n-- verified: 9.5.1 (live, 2026-10-06)\nCONNECT DATABASE sales_analytics;\n\nCREATE MATERIALIZED TABLE income_band_target (\n        income_band_sk : int,\n        target_households : int,\n        set_by : text\n    )\n    FOLDER = '\u002F02 - integration'\n    CONSTRAINT 'pk_income_band_target' PRIMARY KEY ( 'income_band_sk' );\n\nINSERT INTO income_band_target (income_band_sk, target_households, set_by)\nVALUES (1, 400, 'planning 2025'), (2, 380, 'planning 2025'), (3, 360, 'planning 2025');\n\nSELECT COUNT(*) AS loaded\nFROM income_band_target;\n```\n\n- **Its rows exist nowhere else.** Never `CREATE OR REPLACE` it: over a filled table that\n  empties it, silently. The file runs once; later rows are `INSERT`s in files of their own.\n- **Only `INSERT`**: `Update on materialized tables is not allowed`, `Delete on … is not\n  allowed`. A correction is a new table, or `DROP VIEW` and a new one — the human's yes.\n- The primary key is not enforced: a second `INSERT` of the same key is accepted. Check\n  `SELECT key, COUNT(*) … HAVING COUNT(*) > 1` after each load.\n- It lives in the cache database (`C_INCOME_BAND_TARGET\u003Cdigits>`); the cache has to be\n  configured for the database (*documentation*). `SELECT … INTO \u003Cnew name> FROM …` creates one\n  from a query; it refuses a name that exists.\n- **A `decimal` kept twenty decimals whatever was declared**, with the cache database on SQL\n  Server (measured) — `DECIMAL(12,2)` in the SQL form of the column list stored `10.555` as\n  `10.55500000000000000000`. Round in the `INSERT`.\n\n### Drop — on the human's yes\n\n```sql\n-- verified: 9.5.1 (live, 2026-10-06)\nCONNECT DATABASE sales_analytics;\n\nSELECT used_by_name, depth\nFROM USED_BY()\nWHERE input_view_database_name = 'sales_analytics' AND input_view_name = 'bv_dwh_household_income';\n\nSELECT \"stored procedure result\"\nFROM DROP_REMOTE_TABLE()\nWHERE base_view_database_name = 'sales_analytics' AND base_view_name = 's_household_band'\n  AND drop_base_view_on_cascade = false;\n\nSELECT \"stored procedure result\"\nFROM DROP_REMOTE_TABLE()\nWHERE base_view_database_name = 'sales_analytics' AND base_view_name = 'bv_dwh_household_income'\n  AND drop_base_view_on_cascade = false;\n```\n\n- `DROP_REMOTE_TABLE` drops the table in the database and the base view or summary over it.\n  With `drop_base_view_on_cascade = false` it refuses while anything reads the view — the\n  `USED_BY` above says what — and drops nothing. It refuses a base view the procedure did not\n  create, too: a table made by the command or by someone's DDL is dropped by its owner.\n- `DROP VIEW` instead leaves the table in the database, orphaned.\n\n## What you need\n\n| Slot | Where it comes from |\n|---|---|\n| Which of the four | the \"Which one\" table, after the plan or the readers say why |\n| The target data source and schema | **the human** — a data source in the project or the team's shared one; never a default you found |\n| The table name | the human, or the warehouse's conventions; the summary's `s_` prefix (`\u002Fdenodo:vql`) |\n| The query | the view the readers need, every column named |\n| How often it is refreshed, and by what | the human; a Scheduler job is `\u002Fdenodo:scheduler`; the file is yours |\n| The server can do it | `env check --env dev` → `features.data_movement` (a remote table, a summary and a data movement need it — documentation) and `features.summary_rewrite` (a summary answers no query without it); `false` is the administrator's, `null` unknown |\n| The yes | the human, for everything in the right-hand column of the rule |\n\n## Verify\n\n| Check | How | Expect |\n|---|---|---|\n| The table holds the query | `inserted_rows`, then `COUNT(*)` of the base view, against `will_load` | equal |\n| The types landed as meant | `SELECT creation_vql FROM GENERATE_VQL_TO_CREATE_JDBC_BASE_VIEW() WHERE data_source_name = 'ds_dwh' AND catalog_name = 'dwh' AND schema_name = 'reporting' AND table_name = 'household_income' AND base_view_name = 'type_check'` — it only generates text and creates nothing; with `folder = '\u002F'` it fails; read `sourcetypename`, `sourcetypesize` | text widths, `nvarchar` where text is not Latin, the decimals the readers expect |\n| A loaded summary answers like the views | the pair in \"Load it\", after every load | equal; a failed load → rewrite off at once |\n| A refresh worked | `COUNT(*)` after `REFRESH` | the new count, not `0` |\n| A summary is used | the plan of the readers' query | `acceleratedWithSummaries = [\u003Cdb>.\u003Csummary>]` |\n| A data movement does its job | the plan | one `SQLSentence` in the big side's data source joining `t_\u003Cview>_\u003Cid>` |\n| Nothing old was touched | `GET_JDBC_DATASOURCE_TABLES` of the target schema before and after | one new table, nothing gone |\n\n## Silent failures\n\nEach runs without an error — *verified: 9.5.1 (live, 2026-10-02)*; rows 12, 13 and 15 with the\ntarget database on SQL Server — another database maps types and compares text its own way.\n\n| You did | What happens | Instead |\n|---|---|---|\n| 1. `REFRESH` while a source was down | the table is emptied and stays empty | check the sources first; the job alerts; readers who cannot see 0 rows need a cache |\n| 2. `SELECT *` in the load query, then a column was added to the view | the next `REFRESH` fails after emptying the table | name every column |\n| 3. `replace_remote_table_if_exist = true` \u002F `OR REPLACE` on a taken name | another team's table replaced; their views stay `OK` until a query reads a column that is gone | check the name; a taken one is the human's |\n| 4. changed the view a remote table is loaded from | no warning — `USED_BY` does not see the table; the next `REFRESH` fails after emptying it | search `DESC VQL DATABASE \u003Cdb>` for the view's name before changing it |\n| 5. loaded a summary, then the sources or the views under it changed | rewritten queries answer the old figures | `REFRESH` on a schedule; compare with `summary_rewrite` off |\n| 6. a summary for `AVG` queries, or for `COUNT(DISTINCT)` at another grain than its own | not used; nothing is faster | the plan first; sums and counts in it, a distinct count only at the queried grain |\n| 7. data movement into a data source the big side is not in | the plan says `Data Movement`, the join still runs in Denodo | the big side's data source |\n| 8. `DROP VIEW` of a remote table's base view or a summary | the table stays in the database | `DROP_REMOTE_TABLE` |\n| 9. `CREATE OR REPLACE MATERIALIZED TABLE` over one with rows | 0 rows | plain `CREATE`, once |\n| 10. two `INSERT`s of the same key into a materialized table | both kept | check duplicates after each load |\n| 11. the `CREATE REMOTE TABLE` command | no base view, no count; later neither `REFRESH` nor `DROP_REMOTE_TABLE` works on it | the procedure |\n| 12. a computed or file text into a remote table | it lands as `varchar(4000)`; a longer value fails the load and leaves an empty table | measure `MAX(LEN(…))` first; `CAST(… AS varchar(8000))` in the query makes the column that wide |\n| 13. non-Latin text into a `varchar` column | `?` for every character the code page lacks | `CAST(… AS nvarchar(n))` in the query |\n| 14. a summary's `REFRESH` failed | the summary is empty and still used: 0 rows, `NULL` totals for every query sent to it | rewrite off at once (`ALTER SUMMARY VIEW … QUERY REWRITE ENABLED = FALSE`), then reload |\n| 15. a filter answered through a summary or a remote table | compared in that database's collation — case and trailing spaces may stop counting | check the values; say where the query runs |\n\n## Common mistakes\n\n| You wrote | Server says | Fix |\n|---|---|---|\n| `CREATE_REMOTE_TABLE` on a name that exists | `CREATE_REMOTE_TABLE [STORED PROCEDURE] [ERROR]`, no reason | the name check; a taken name is the human's |\n| the command on a name that exists | `Remote table \"dwh\".\"reporting\".household_income already exists` | the same |\n| `REFRESH` of a base view the procedure did not create | `The REFRESH command is only valid for Summaries and Remote Tables` | create it with the procedure; a table someone else made is theirs to refresh |\n| `REFRESH` after the view gained a column | `Error executing data movement from view _p__… to source ds_dwh` — **table now empty** | name the columns in the load query; recreate it (the human's yes) |\n| `DROP_REMOTE_TABLE` on a hand-made base view, or with readers and `cascade = false` | `DROP_REMOTE_TABLE [STORED PROCEDURE] [ERROR]`, no reason; nothing dropped | `USED_BY`; the table's owner |\n| `CREATE OR REPLACE SUMMARY VIEW` over an existing one with `IF RELATION EXISTS ERROR` | `Remote table exists. Use clause IF RELATION EXISTS REPLACE to allow its replacement and create the summary.` | a change to a summary is the human's yes, with `REPLACE` |\n| `UPDATE` \u002F `DELETE` on a materialized table | `Update on materialized tables is not allowed` \u002F `Delete on materialized tables is not allowed` | a new table, or `INSERT` only |\n| `SELECT … INTO` an existing name | `error creating table: invalid view name: already exists` | a new name |\n| `DROP MATERIALIZED TABLE x` | `Syntax error: Exception parsing query near 'MATERIALIZED'` | `DROP VIEW x` |\n| `CAST(x AS double)` \u002F `CAST(x AS int)` in a load query | `Syntax error … near ')'` | `double precision`, `integer` (`\u002Fdenodo:vql`, dialect) |\n\n## Reference\n\n- `references\u002Fremote-tables.md` — the procedure and the command in full, every result and status,\n  types per Denodo type as measured, `REFRESH`, the readers of a table, materialized tables.\n- `references\u002Fincremental.md` — loading only what is new or changed: the upsert, its checks, a job.\n- `references\u002Fsummaries.md` — the `CREATE` and `ALTER SUMMARY VIEW` grammar, which queries are\n  rewritten (measured), the plan lines, staleness, incremental loads (documentation), the\n  switches per server, database and query, and data movement in full.\n",{"name":5,"description":7},"main","fd41fb386b25141c459264d10a1c49bd3b4f4c4b","skills\u002Fmaterialize","https:\u002F\u002Fgithub.com\u002Fkirivandubai\u002Fdenodo_wipe_coading_skills","https:\u002F\u002Fgithub.com\u002Fkirivandubai","2026-10-29 13:49:22",{"source":8,"skillName":5,"commands":30,"prompt":40,"zipAvailable":41},[31,34,37],{"tool":32,"command":33},"npx","npx skills add kirivandubai\u002Fdenodo_wipe_coading_skills --skill materialize",{"tool":35,"command":36},"bunx","bunx skills add kirivandubai\u002Fdenodo_wipe_coading_skills --skill materialize",{"tool":38,"command":39},"pnpm","pnpm dlx skills add kirivandubai\u002Fdenodo_wipe_coading_skills --skill materialize","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fkirivandubai\u002Fdenodo_wipe_coading_skills\u002Fblob\u002Fmain\u002Fskills\u002Fmaterialize\u002FSKILL.md",true,[43,49,53],{"path":44,"resourceType":45,"resourceTypeDesc":46,"sizeBytes":47,"sourceHtmlUrl":48},"references\u002Fincremental.md","REFERENCE","参考文档",8419,"https:\u002F\u002Fgithub.com\u002Fkirivandubai\u002Fdenodo_wipe_coading_skills\u002Fblob\u002Fmain\u002Fskills\u002Fmaterialize\u002Freferences\u002Fincremental.md",{"path":50,"resourceType":45,"resourceTypeDesc":46,"sizeBytes":51,"sourceHtmlUrl":52},"references\u002Fremote-tables.md",11851,"https:\u002F\u002Fgithub.com\u002Fkirivandubai\u002Fdenodo_wipe_coading_skills\u002Fblob\u002Fmain\u002Fskills\u002Fmaterialize\u002Freferences\u002Fremote-tables.md",{"path":54,"resourceType":45,"resourceTypeDesc":46,"sizeBytes":55,"sourceHtmlUrl":56},"references\u002Fsummaries.md",9817,"https:\u002F\u002Fgithub.com\u002Fkirivandubai\u002Fdenodo_wipe_coading_skills\u002Fblob\u002Fmain\u002Fskills\u002Fmaterialize\u002Freferences\u002Fsummaries.md",[58,65,72,79,86,93],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":18},"01M7C2NGAJEKKG90BG9Q1Z2M96","vql","Use when doing anything with Denodo — creating or changing a database, folder, tag, data source, wrapper, base, derived, interface or metric view, association, cache, role or security policy, remote table or summary, a Data Marketplace object, a regression test or a Scheduler job; writing or fixing VQL, or an expression in a SELECT — text, dates, casts; deciding where an object lives and what to name it; \"where do I start\", \"build a mart\", \"connect a source\", \"vibe-code on Denodo\". Start here when the request is ambiguous or names no single object.","https:\u002F\u002Fgithub.com\u002Fkirivandubai\u002Fdenodo_wipe_coading_skills\u002Fblob\u002Fmain\u002Fskills\u002Fvql\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":18},"01M7C2N5W4203SQ2TRYT6E0VSR","views","Use when building on top of views that already exist in Denodo 9.5 — a derived view (a join, an aggregate, a mart, a filtered or parameterised view, a UNION ALL of views of one entity, FLATTEN of a JSON array into rows, NEST of rows into an array), an interface view, or an association between two views. Also before changing a view others depend on — \"what uses this view\", \"can I drop this column\", \"where does this field come from\" — for whether a mart over a database runs there or pulls every row into Denodo, for \"combine these sources into one view\", \"expose this as a data product\", and for a view created without an error that fails on SELECT or turns up INVALID. Not for sources and base views — \u002Fdenodo:datasources; databases, folders, VDP tags — \u002Fdenodo:catalog; a view's cache — \u002Fdenodo:cache; a copy stored as a table — \u002Fdenodo:materialize; a metric view — \u002Fdenodo:metrics.","https:\u002F\u002Fgithub.com\u002Fkirivandubai\u002Fdenodo_wipe_coading_skills\u002Fblob\u002Fmain\u002Fskills\u002Fviews\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":18},"01M7C2MY48XXHR87G39R0F0VTK","testing","Use when a Denodo 9.5 project needs regression tests, or its tests need running or fixing — .denodotest files that the Denodo Testing Tool runs in CI (%EXECUTION, %RESULTS[data|query|csv|exception], configuration.properties, denodo-test.sh) — \"add tests for this mart\", \"a safety net before I rewrite these views\", \"make sure the dashboards see no difference\", \"what should CI check on our data products\", \"prove the mart is right\", \"CI is red on the Denodo tests\", a test that fails on row order, on a column it did not ask for or on a value padded with spaces. Not for checking a new view once, right after creating it — \u002Fdenodo:views.","https:\u002F\u002Fgithub.com\u002Fkirivandubai\u002Fdenodo_wipe_coading_skills\u002Fblob\u002Fmain\u002Fskills\u002Ftesting\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":18},"01M7C2MMFX40K0WTDNW05VCQEJ","semantics","Use when the views of an existing Denodo 9.5 database have to be understood by people and by AI consumers — the Denodo MCP Server, Assisted Query in the Data Marketplace, the AI SDK. Auditing a database for views and fields without descriptions, primary keys that are missing or not unique, missing associations and the VDP tag the MCP Server shows views by; writing view, field, association and tag descriptions from the data, and primary keys. Also for \"describe \u002F document these views\", \"prepare this database for AI, MCP or Assisted Query\", \"why does the agent not see this view through MCP\", a description that says the wrong thing. Not for building or changing what a view computes — \u002Fdenodo:views; not for marketplace-only metadata (logical names, property groups, marketplace tags) — \u002Fdenodo:marketplace.","https:\u002F\u002Fgithub.com\u002Fkirivandubai\u002Fdenodo_wipe_coading_skills\u002Fblob\u002Fmain\u002Fskills\u002Fsemantics\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":18},"01M7C2M9XVTRVXYXMGTEC62EFB","security","Use when deciding who may read what in Denodo 9.5 — masking or hiding columns (PII, contact details, salaries, bank accounts) from some users or roles, letting a role see only some rows (a country, a tenant) or each person only their own, taking someone's access away (ALTER USER … REVOKE), denying a view to a group, a global security policy (CREATE GLOBAL_SECURITY_POLICY) and the VDP tags it reads, giving a user a role or giving a role access to a database or views (CREATE ROLE … GRANT EXECUTE, ALTER USER … GRANT ROLE), checking what a given user really gets back, or a user who sees data a restriction should hide (\"he still gets every row\", \"the masking stopped working\"). Not for a tag as a label without a policy (\u002Fdenodo:catalog) or for descriptions and the MCP visibility tag (\u002Fdenodo:semantics).","https:\u002F\u002Fgithub.com\u002Fkirivandubai\u002Fdenodo_wipe_coading_skills\u002Fblob\u002Fmain\u002Fskills\u002Fsecurity\u002FSKILL.md",[],[],{"skillNo":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":18},"01M7C2KYWB8B6ZC026CT3Z1MZA","scheduler","Use when something in Denodo 9.5 has to happen on a schedule, or a scheduled run misbehaves — refreshing the cache of a view every night or every hour, running REFRESH of a remote table or a procedure at a set time, exporting a view to a CSV file every week or month, running a Denodo Scheduler job now, stopping, pausing, enabling or deleting it, reading what last night's run did or why it failed, \"the cache doubles after every refresh\", \"the job fires at the wrong hour\", \"the export file is missing or has no header\". Denodo Scheduler projects, jobs, cron triggers and reports, through the REST API of the Scheduler administration tool. Not for switching a cache on or loading it once (\u002Fdenodo:cache), not for creating the remote table or summary itself (\u002Fdenodo:materialize).","https:\u002F\u002Fgithub.com\u002Fkirivandubai\u002Fdenodo_wipe_coading_skills\u002Fblob\u002Fmain\u002Fskills\u002Fscheduler\u002FSKILL.md",[],[]]