Skip to content

Commit

Permalink
temp [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
benfdking committed Dec 19, 2024
1 parent c2c0f9a commit 0c99158
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions crates/lib-core/src/dialects/base.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ impl Dialect {
.unwrap_or_else(|| panic!("Failed to get mutable reference for {name}"))
{
DialectElementType::Matchable(matchable) => {
println!("Replacing grammar {:?} with new grammar.", matchable);
matchable.as_node_matcher().unwrap().match_grammar = match_grammar;
}
DialectElementType::SegmentGenerator(_) => {
Expand Down
3 changes: 2 additions & 1 deletion crates/lib-dialects/src/databricks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ pub fn dialect() -> Dialect {
// Only difference between this and the SparkSQL version:
// - `LIKE` keyword is optional
databricks.replace_grammar(
"ShowViewsGrammar".into(),
"ShowViewsStatement".into(),
Sequence::new(vec_of_erased![
Ref::keyword("VIEWS"),
Sequence::new(vec_of_erased![one_of(vec_of_erased![
Expand All @@ -278,6 +278,7 @@ pub fn dialect() -> Dialect {
.to_matchable()
.into(),
);

// TODO Missing Show Object Grammar
databricks.replace_grammar(
"NotNullGrammar".into(),
Expand Down

0 comments on commit 0c99158

Please sign in to comment.