Skip to content

Commit

Permalink
remove debug println
Browse files Browse the repository at this point in the history
  • Loading branch information
cyliu0 committed Mar 18, 2024
1 parent d294ba0 commit e88eeda
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions pkg/util/risingwave.go
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
package util

import (
"fmt"
"regexp"
)

func ConvertToRisingWaveDDL(query string) string {
fmt.Println(query)
query = regexp.MustCompile("(?i)varchar\\(\\d+\\)").ReplaceAllString(query, "VARCHAR")
query = regexp.MustCompile("(?i)numeric\\(.*?\\)").ReplaceAllString(query, "NUMERIC")
query = regexp.MustCompile("(?i)decimal\\(.*?\\)").ReplaceAllString(query, "DECIMAL")
query = regexp.MustCompile("(?i)char\\(\\d+\\)").ReplaceAllString(query, "VARCHAR")
query = regexp.MustCompile("(?i) not null").ReplaceAllString(query, "")
fmt.Println(query)
return query
}

0 comments on commit e88eeda

Please sign in to comment.