@@ -11,7 +11,6 @@ import (
1111 "sort"
1212 "text/template"
1313
14- "github.com/apache/arrow/go/v13/arrow"
1514 "github.com/cloudquery/plugin-sdk/v3/caser"
1615 "github.com/cloudquery/plugin-sdk/v3/schema"
1716)
@@ -147,7 +146,7 @@ func (p *Plugin) jsonifyTables(tables schema.Tables) []jsonTable {
147146 for c , col := range table .Columns {
148147 jsonColumns [c ] = jsonColumn {
149148 Name : col .Name ,
150- Type : formatType ( col .Type ),
149+ Type : col .Type . String ( ),
151150 IsPrimaryKey : col .PrimaryKey ,
152151 IsIncrementalKey : col .IncrementalKey ,
153152 }
@@ -204,8 +203,7 @@ func (p *Plugin) renderAllTables(t *schema.Table, dir string) error {
204203
205204func (p * Plugin ) renderTable (table * schema.Table , dir string ) error {
206205 t := template .New ("" ).Funcs (map [string ]any {
207- "formatType" : formatType ,
208- "title" : p .titleTransformer ,
206+ "title" : p .titleTransformer ,
209207 })
210208 t , err := t .New ("table.md.go.tpl" ).ParseFS (templatesFS , "templates/table.md.go.tpl" )
211209 if err != nil {
@@ -232,10 +230,6 @@ func formatMarkdown(s string) string {
232230 return reMatchHeaders .ReplaceAllString (s , `$1` + "\n \n " )
233231}
234232
235- func formatType (v arrow.DataType ) string {
236- return v .String ()
237- }
238-
239233func indentToDepth (table * schema.Table ) string {
240234 s := ""
241235 t := table
0 commit comments