From d2c76df89feac8e82d8c59ca422308adec6d4eca Mon Sep 17 00:00:00 2001 From: cetra3 Date: Thu, 20 Feb 2025 11:30:19 +1030 Subject: [PATCH] Add support for `Dictionary` to AST datatype --- datafusion/sql/src/unparser/expr.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/datafusion/sql/src/unparser/expr.rs b/datafusion/sql/src/unparser/expr.rs index 7c56969d47cd..87f78d661f51 100644 --- a/datafusion/sql/src/unparser/expr.rs +++ b/datafusion/sql/src/unparser/expr.rs @@ -1624,9 +1624,7 @@ impl Unparser<'_> { DataType::Union(_, _) => { not_impl_err!("Unsupported DataType: conversion: {data_type:?}") } - DataType::Dictionary(_, _) => { - not_impl_err!("Unsupported DataType: conversion: {data_type:?}") - } + DataType::Dictionary(_, val) => self.arrow_dtype_to_ast_dtype(val), DataType::Decimal128(precision, scale) | DataType::Decimal256(precision, scale) => { let mut new_precision = *precision as u64;