雪花BIT数据类型

时间:2019-12-20 15:18:59

标签: sql sql-server snowflake-data-warehouse

我在SQL Server中具有BIT数据类型,并且我正尝试将其迁移到雪花 但是我无法正确地将数据放入雪花 当i DT_UI1数据类型在sql server中输出列时,0变为0,但1变为255

有人可以帮我如何将位数据类型列发送到雪花

1 个答案:

答案 0 :(得分:1)

DT_UI1可能是 unsigned 整数,您需要一个常规的有符号整数。

否则您只能选择

import matplotlib.pyplot as plt
from shapely.geometry import Point

points = [Point(-4.85624511894443, 37.1837967179202), 
          Point(-4.855703975302475, 37.18401757756585),
          Point(-4.85516283166052, 37.1842384372115),
          Point(-4.85343407576431, 37.182006629169),
          Point(-4.85347524651836, 37.1804461589773),
          Point(-4.855792124429867, 37.18108913443582),
          Point(-4.85624511894443, 37.1837967179202)]
xs = [point.x for point in points]
ys = [point.y for point in points]
plt.scatter(xs, ys)
# or plt.plot(xs, ys) if you want to connect points by lines

>>> MultiPoint(points)

要在源端获取整数