We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The current implementation of DECIMAL (/NUMERIC) does not support the precision and scale attribute which is supported since hive 0.13.
DECIMAL
NUMERIC
possible implementation solution:
class HiveTypeCompiler(compiler.GenericTypeCompiler): # [..] def visit_NUMERIC(self, type_): precision = getattr(type_, "precision", None) if precision is None: return "DECIMAL" else: scale = getattr(type_, "scale", None) if scale is None: return "DECIMAL(%(precision)s)" % {"precision": precision} else: return "DECIMAL(%(precision)s, %(scale)s)" % {"precision": precision, "scale": scale}
The text was updated successfully, but these errors were encountered:
support precision and scale for DECIMAL/NUMERIC dropbox#439
ceb2572
No branches or pull requests
The current implementation of
DECIMAL
(/NUMERIC
) does not support the precision and scale attribute which is supported since hive 0.13.possible implementation solution:
The text was updated successfully, but these errors were encountered: