Skip to Content

Templates calling extended attribute

Hello,

does anybody face the same problem? Trying to call the extended attribute of the column (RedShift database) which is called encoding. PD does not know that ...

Do you know how to call that from the template?

create table %Owner.Name%.%Name% (\n
.foreach_item(Columns)
\t%Name% %DataType%
   .if %Mandatory% 
 NOT NULL
   .endif
   %encoding%
.next(,\n)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Aug 29 at 02:46 PM

    Hi,

    GTL is case sensitive. Try typing %Encoding% instead:)

    Ondrej

    Add comment
    10|10000 characters needed characters exceeded

  • Aug 30 at 12:47 PM

    The capital E did not help :(

    Add comment
    10|10000 characters needed characters exceeded

    • Actually it works, but only when the template is defined inside the same resource, as the "Encoding" extended attribute. And the owner of the table must be defined as well, otherwise it lead to translation error too.