i have a markdown file called “split_by_index.md” that describe one of my macro functionality.
The problem I’m having is trying to add a ‘{{ doc(“parser_doc”) }}’ in my macro description but an occurent error return :
Encountered an error:
Compilation Error
‘split_by_index’ is undefined. This can happen when calling a macro that does not exist. Check for typos and/or install package dependencies with “dbt deps”.
here’s my yml file config for the macro :
macros:
- name: split_by_index
description: ‘{{ doc(“parser_doc”) }}’
arguments:- name: delimiter
type: string
description: “Le caractère délimiteur utilisé pour diviser la chaîne.” - name: column
type: string
description: “Le nom de la colonne contenant la chaîne à diviser.” - name: index
type: integer
description: “L’index de l’élément à extraire (commence à 1).”
return_value: “Retourne l’élément à l’index spécifié après division de la chaîne.”
- name: delimiter
This method works for models to document my auto generate documentation but not for macros documentation.
Can someone explain to me why does the md file can not be read by the macro config ?
Thank U