我有兩個表,Primary_table_id(uuid) 其中我使用uuid()來生成密鑰。另一個表的關鍵是int。我想合併所有的行,其中name1包含名稱2,其他不相應的行將通過使用UUID()更改鍵值進行簡單合併,向沒有值的列添加null。 enter image description here
我知道我可以做UUID.randomUUID.toString來爲我的Dataset中的每一行附加一個ID,但是我需要這個ID是一個Long,因爲我想使用GraphX。我如何在Spark中做到這一點?我知道Spark有monotonically_increasing_id(),但那僅適用於DataFrame API - 數據集的情況如何?
我想測試一個變量是唯一標識符,如果它然後將其轉換爲字符串,但它失敗: Declare @Item VARCHAR(50)
Declare @OutString varchar(max) ;
[email protected] is populated from various tables each cell separated by ','
--Getting the @Item fro